Skip to content

Commit

Permalink
fix: add buildscript for contract, ci install forc
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Nov 26, 2024
1 parent dfd8178 commit 1916400
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
steps:
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Install forc
run: |
curl https://install.fuel.network | sh
- uses: actions/checkout@v4
- run: rustup target add wasm32-unknown-unknown
- name: Run tests
Expand Down
1 change: 0 additions & 1 deletion fuel-zkvm-primitives-test-fixtures/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ cargo test --lib opcodes::tests
## Test Counter Contract

```shell
forc build --path src/fixtures/counter_contract
cargo test --lib counter_contract::tests
```

Expand Down
10 changes: 10 additions & 0 deletions fuel-zkvm-primitives-test-fixtures/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use std::process::Command;

pub fn main() {
Command::new("forc")
.arg("build")
.arg("--path")
.arg("src/fixtures/counter_contract")
.spawn()
.expect("failed to build contract");
}

0 comments on commit 1916400

Please sign in to comment.