* wip:add forc and fuel-core to run sway contracts

* update sway packages

* update path for fuel-core

* Delete .DS_Store

* Delete .DS_Store

* update forc package test

* update to cargo install

* remove fuel-core

* build and test

* add lib deps

* Update package.yml

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Pedro Cruz 2023-03-31 13:51:52 -04:00 committed by GitHub
parent d2c6e32d01
commit 8d9cdb01df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,43 @@
distributable:
url: https://github.com/FuelLabs/sway/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
github: FuelLabs/sway
provides:
- bin/forc
dependencies:
zlib.net: '*'
linux:
openssl.org: '*'
build:
dependencies:
rust-lang.org: 1
rust-lang.org/cargo: ^0.65
linux:
# needed to build openssl module
perl.org: '*'
tea.xyz/gx/make: '*'
script:
cargo install --locked --path forc --root {{prefix}}
test:
script: |
forc new tea_test
cd tea_test
cp $FIXTURE src/main.sw
forc test
fixture: |
script;
#[test]
fn test_meaning_of_life() {
assert(6 * 7 == 42);
}
fn main() {
()
}