diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 5aab6c8b8b5886191ee9c144c488be69c923e8b9..424e34f423052ba8ffdbac7e4f9c62a1a56826d0 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -48,8 +48,6 @@ jobs: - name: Build contract template on ${{ matrix.platform }}-${{ matrix.toolchain }} run: | - cc --version - clang --version wasm-opt --version cargo -vV cargo run -- contract --version diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index a82df4c059a65fd6e2a8b74460f3460bed5fbb2c..e9a179bf37efe8a82fa82c3d6a076f0a02c18baf 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -51,8 +51,6 @@ jobs: - name: Build contract template on ${{ matrix.platform }}-${{ matrix.toolchain }} run: | - cc --version - clang --version wasm-opt --version cargo -vV cargo run -- contract --version @@ -62,9 +60,11 @@ jobs: cargo run -- contract check --manifest-path=foobar/Cargo.toml cargo run -- contract test --manifest-path=foobar/Cargo.toml - - name: Run tests on {{ matrix.platform }}-${{ matrix.toolchain }} - # The tests take a long time in the GitHub Actions runner (~30 mins), - # hence we run them only on `master`. - if: github.ref == 'refs/heads/master' - run: | - cargo test --verbose --workspace --all-features + # This stage has to be deactivated until https://github.com/Vurich/crunchy/pull/10 + # is merged and released. + # - name: Run tests on {{ matrix.platform }}-${{ matrix.toolchain }} + # # The tests take a long time in the GitHub Actions runner (~30 mins), + # # hence we run them only on `master`. + # if: github.ref == 'refs/heads/master' + # run: | + # cargo test --verbose --workspace --all-features diff --git a/src/cmd/test.rs b/src/cmd/test.rs index 98b9dae139323e2ddd158987e0e30666a75f2072..3e31862b4d4b0827eab95a20ebeb397e5905c592 100644 --- a/src/cmd/test.rs +++ b/src/cmd/test.rs @@ -65,6 +65,9 @@ pub(crate) fn execute(manifest_path: &ManifestPath, verbosity: Verbosity) -> Res "Running tests".bright_green().bold() ); + // We need to make sure that `RUSTFLAGS` are not set in the CI here. + // `cargo-contract` sets them when building contracts. + std::env::set_var("RUSTFLAGS", ""); let stdout = util::invoke_cargo("test", &[""], manifest_path.directory(), verbosity)?; Ok(TestResult { stdout, verbosity })