diff --git a/.github/workflows/check_tests.yml b/.github/workflows/check_tests.yml index 9b41aeaa7..e79e9423e 100644 --- a/.github/workflows/check_tests.yml +++ b/.github/workflows/check_tests.yml @@ -70,10 +70,9 @@ jobs: curl -s https://sh.rustup.rs -sSf | sh -s -- -y source ${HOME}/.cargo/env rustup toolchain install stable - rustup toolchain install nightly rustup default stable - rustup target add wasm32-unknown-unknown --toolchain nightly rustup update + rustup target add wasm32-unknown-unknown - name: Run Unit Tests env: RUST_BACKTRACE: full @@ -82,7 +81,7 @@ jobs: SCCACHE_DIR: /home/runner/.cache/sccache run: | source ${HOME}/.cargo/env - cargo test --release --features=runtime-benchmarks,try-runtime -- --test-threads=2 + RUSTC_BOOTSTRAP=1 cargo test --release --features=runtime-benchmarks,try-runtime -- --test-threads=2 - name: stop sccache server run: sccache --stop-server || true stop-unit-test-checks: diff --git a/.github/workflows/generate_calamari_weights_files.yml b/.github/workflows/generate_calamari_weights_files.yml index 2940395b2..5df421818 100644 --- a/.github/workflows/generate_calamari_weights_files.yml +++ b/.github/workflows/generate_calamari_weights_files.yml @@ -49,10 +49,9 @@ jobs: curl -s https://sh.rustup.rs -sSf | sh -s -- -y source ${HOME}/.cargo/env rustup toolchain install stable - rustup toolchain install nightly rustup default stable - rustup target add wasm32-unknown-unknown --toolchain nightly rustup update + rustup target add wasm32-unknown-unknown - name: build env: RUST_BACKTRACE: full @@ -62,7 +61,7 @@ jobs: CARGO_TERM_COLOR: always run: | source ${HOME}/.cargo/env - cargo build --profile production --verbose --features=runtime-benchmarks + RUSTC_BOOTSTRAP=1 cargo build --profile production --verbose --features=runtime-benchmarks - name: stop sccache server run: sccache --stop-server || true - name: upload diff --git a/.github/workflows/generate_dolphin_weights_files.yml b/.github/workflows/generate_dolphin_weights_files.yml index bf82abd10..9cd1314b5 100644 --- a/.github/workflows/generate_dolphin_weights_files.yml +++ b/.github/workflows/generate_dolphin_weights_files.yml @@ -49,10 +49,9 @@ jobs: curl -s https://sh.rustup.rs -sSf | sh -s -- -y source ${HOME}/.cargo/env rustup toolchain install stable - rustup toolchain install nightly rustup default stable - rustup target add wasm32-unknown-unknown --toolchain nightly rustup update + rustup target add wasm32-unknown-unknown - name: build env: RUST_BACKTRACE: full @@ -62,7 +61,7 @@ jobs: CARGO_TERM_COLOR: always run: | source ${HOME}/.cargo/env - cargo build --profile production --verbose --features=runtime-benchmarks + RUSTC_BOOTSTRAP=1 cargo build --profile production --verbose --features=runtime-benchmarks - name: stop sccache server run: sccache --stop-server || true - name: upload diff --git a/.github/workflows/generate_manta_weights_files.yml b/.github/workflows/generate_manta_weights_files.yml index 066b322ba..96ce3b11f 100644 --- a/.github/workflows/generate_manta_weights_files.yml +++ b/.github/workflows/generate_manta_weights_files.yml @@ -49,10 +49,9 @@ jobs: curl -s https://sh.rustup.rs -sSf | sh -s -- -y source ${HOME}/.cargo/env rustup toolchain install stable - rustup toolchain install nightly rustup default stable - rustup target add wasm32-unknown-unknown --toolchain nightly rustup update + rustup target add wasm32-unknown-unknown - name: build env: RUST_BACKTRACE: full @@ -62,7 +61,7 @@ jobs: CARGO_TERM_COLOR: always run: | source ${HOME}/.cargo/env - cargo build --profile production --verbose --features=runtime-benchmarks + RUSTC_BOOTSTRAP=1 cargo build --profile production --verbose --features=runtime-benchmarks - name: stop sccache server run: sccache --stop-server || true - name: upload diff --git a/.github/workflows/metadata_diff.yml b/.github/workflows/metadata_diff.yml index 2ea4b8721..747c37bba 100644 --- a/.github/workflows/metadata_diff.yml +++ b/.github/workflows/metadata_diff.yml @@ -75,10 +75,9 @@ jobs: curl -s https://sh.rustup.rs -sSf | sh -s -- -y source ${HOME}/.cargo/env rustup toolchain install stable - rustup toolchain install nightly rustup default stable - rustup target add wasm32-unknown-unknown --toolchain nightly rustup update + rustup target add wasm32-unknown-unknown - name: Build Binary env: RUST_BACKTRACE: full @@ -87,7 +86,7 @@ jobs: SCCACHE_DIR: /home/runner/.cache/sccache run: | source ${HOME}/.cargo/env - cargo build --release + RUSTC_BOOTSTRAP=1 cargo build --release chmod +x target/release/manta - name: stop sccache server run: sccache --stop-server || true diff --git a/.github/workflows/publish_draft_releases.yml b/.github/workflows/publish_draft_releases.yml index d2be5af6d..adf549775 100644 --- a/.github/workflows/publish_draft_releases.yml +++ b/.github/workflows/publish_draft_releases.yml @@ -120,10 +120,9 @@ jobs: curl -s https://sh.rustup.rs -sSf | sh -s -- -y source ${HOME}/.cargo/env rustup toolchain install stable - rustup toolchain install nightly rustup default stable - rustup target add wasm32-unknown-unknown --toolchain nightly rustup update + rustup target add wasm32-unknown-unknown - name: build env: RUST_BACKTRACE: full @@ -132,7 +131,7 @@ jobs: SCCACHE_DIR: /home/runner/.cache/sccache run: | source ${HOME}/.cargo/env - cargo build --profile production --verbose + RUSTC_BOOTSTRAP=1 cargo build --profile production --verbose - name: stop sccache server run: sccache --stop-server || true - name: upload @@ -188,7 +187,7 @@ jobs: - if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }} name: fetch and chmod polkadot run: | - curl -L -o $HOME/.local/bin/polkadot https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot + curl -L -o $HOME/.local/bin/polkadot https://github.com/paritytech/polkadot/releases/download/v0.9.22/polkadot chmod +x $HOME/.local/bin/polkadot ls -ahl $HOME/.local/bin/ - if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }} diff --git a/.github/workflows/check_build.yml b/.github/workflows/run_linters.yml similarity index 95% rename from .github/workflows/check_build.yml rename to .github/workflows/run_linters.yml index 0323280e2..8e7ea2a96 100644 --- a/.github/workflows/check_build.yml +++ b/.github/workflows/run_linters.yml @@ -1,4 +1,4 @@ -name: Check Build +name: Run Linters on: pull_request: branches: [manta] @@ -66,13 +66,13 @@ jobs: - name: start sccache server run: sccache --start-server - name: init + # NOTE: We use nightly Rust only to get nightly fmt & clippy run: | curl -s https://sh.rustup.rs -sSf | sh -s -- -y source ${HOME}/.cargo/env rustup toolchain install nightly - rustup target add wasm32-unknown-unknown --toolchain nightly + rustup +nightly target add wasm32-unknown-unknown rustup default nightly - rustup update cargo install taplo-cli - name: Run yamllint uses: actionshub/yamllint@main @@ -87,7 +87,7 @@ jobs: cargo fmt --all -- --check $HOME/.cargo/bin/taplo fmt --check $HOME/.cargo/bin/taplo lint - - name: Check Build + - name: Cargo Check & Clippy env: RUST_BACKTRACE: full RUSTC_WRAPPER: sccache diff --git a/.github/workflows/try-runtime-calamari-mainnet.yml b/.github/workflows/try-runtime-calamari-mainnet.yml index 42b27dbac..ff98c84c2 100644 --- a/.github/workflows/try-runtime-calamari-mainnet.yml +++ b/.github/workflows/try-runtime-calamari-mainnet.yml @@ -75,10 +75,9 @@ jobs: curl -s https://sh.rustup.rs -sSf | sh -s -- -y source ${HOME}/.cargo/env rustup toolchain install stable - rustup toolchain install nightly rustup default stable - rustup target add wasm32-unknown-unknown --toolchain nightly rustup update + rustup target add wasm32-unknown-unknown - name: Build Binary env: RUST_BACKTRACE: full @@ -87,7 +86,7 @@ jobs: SCCACHE_DIR: /home/runner/.cache/sccache run: | source ${HOME}/.cargo/env - cargo build --release --features=try-runtime + RUSTC_BOOTSTRAP=1 cargo build --release --features=try-runtime chmod a+x target/release/manta - name: move bin run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 49004dc8d..9e4cd0f3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - [\#657](https://github.com/Manta-Network/Manta/pull/657) retire manta-pc-launch with polkadot-launch. ### Bug fixes +- [\#677](https://github.com/Manta-Network/Manta/pull/677) Fix CI failure by building the runtime with stable Rust ## v3.2.0 ### Breaking changes