diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bb18a07..3404fbb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: mv wasi-sdk-* wasi-sdk - name: Setup Rust toolchain - uses: actions-rust-lang/setup-rust-toolchain@v1 + uses: dsherret/rust-toolchain-file@v1 - name: Setup marine uses: fluencelabs/setup-marine@v1 diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 182c9db..b6434d7 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -56,11 +56,26 @@ jobs: } ] - rust-peer: + decider: needs: - spell + uses: fluencelabs/decider/.github/workflows/snapshot.yml@main + with: + cargo-dependencies: | + [ + { + "package": "fluence-spell-dtos", + "version": "=${{ needs.spell.outputs.cargo-version }}", + "registry": "fluence" + } + ] + + nox: + needs: + - spell + - decider - uses: fluencelabs/rust-peer/.github/workflows/build.yml@master + uses: fluencelabs/nox/.github/workflows/build.yml@master with: cargo-dependencies: | [ @@ -73,35 +88,40 @@ jobs: "package": "fluence-spell-distro", "version": "=${{ needs.spell.outputs.cargo-version }}", "registry": "fluence" + }, + { + "package": "decider-distro", + "version": "=${{ needs.decider.outputs.cargo-version }}", + "manifest": "crates/system-services/Cargo.toml", + "registry": "fluence" } ] - rust-peer-snapshot: - name: "rust-peer" + nox-snapshot: + name: "nox" needs: - - rust-peer + - nox - uses: fluencelabs/rust-peer/.github/workflows/container.yml@master + uses: fluencelabs/nox/.github/workflows/container.yml@master with: image-name: "docker.fluence.dev/sqlite-wasm-connector" flavour: "minimal" - rust-peer-sha: "${{ needs.rust-peer.outputs.rust-peer-sha }}" spell-aqua-tests: name: "spell" needs: - - rust-peer-snapshot + - nox-snapshot uses: fluencelabs/spell/.github/workflows/tests.yml@main with: - rust-peer-image: "${{ needs.rust-peer-snapshot.outputs.rust-peer-image }}" + nox-image: "${{ needs.nox-snapshot.outputs.nox-image }}" registry: needs: - snapshot - - rust-peer-snapshot + - nox-snapshot uses: fluencelabs/registry/.github/workflows/tests.yml@main with: - rust-peer-image: "${{ needs.rust-peer-snapshot.outputs.rust-peer-image }}" + nox-image: "${{ needs.nox-snapshot.outputs.nox-image }}" cargo-dependencies: | [ { diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..fa5eec4 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,9 @@ +[toolchain] +channel = "nightly-2023-08-27" +components = [ + "rustfmt", + "clippy", +] +targets = [ + "x86_64-unknown-linux-gnu", +]