@@ -361,19 +361,27 @@ jobs:
361361 echo "RUST_VERSION=${RUST_VERSION}" >> $GITHUB_ENV
362362 - name : Set up Homebrew
363363 uses : Homebrew/actions/setup-homebrew@1ccc07ccd54b6048295516a3eb89b192c35057dc # master from 12.09.2024
364+ # Is broken because of different bash versions
365+ # - name: Install rust ${{ env.RUST_VERSION }}
366+ # uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
367+ # with:
368+ # cache: false
369+ # toolchain: ${{ env.RUST_VERSION }}
370+ # target: wasm32-unknown-unknown
371+ # components: cargo, clippy, rust-docs, rust-src, rustfmt, rustc, rust-std
364372 - name : Install rust ${{ env.RUST_VERSION }}
365- uses : actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
366- with :
367- cache : false
368- toolchain : ${{ env.RUST_VERSION }}
369- target : wasm32-unknown-unknown
370- components : cargo, clippy, rust-docs, rust-src, rustfmt, rustc, rust-std
373+ run : |
374+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUST_VERSION
375+ source $HOME/.cargo/env
376+ rustup target add wasm32-unknown-unknown
377+ rustup component add clippy rust-docs rust-src rustfmt rustc rust-std
371378 - name : Install protobuf
372379 run : brew install protobuf
373380 - name : install solc
374381 run : brew install solidity
375382 - name : Install resolc
376383 run : |
384+ source $HOME/.cargo/env
377385 VERSION="0.3.0"
378386 ASSET_URL="https://github.com/paritytech/revive/releases/download/v$VERSION/resolc-universal-apple-darwin"
379387 echo "Downloading resolc v$VERSION from $ASSET_URL"
@@ -387,12 +395,15 @@ jobs:
387395 brew link llvm@20
388396 - name : cargo info
389397 run : |
398+ source $HOME/.cargo/env
390399 echo "######## rustup show ########"
391400 rustup show
392401 echo "######## cargo --version ########"
393402 cargo --version
394403 - name : Run cargo check
395- run : cargo check --workspace --locked
404+ run : |
405+ source $HOME/.cargo/env
406+ cargo check --workspace --locked
396407
397408 confirm-required-test-misc-jobs-passed :
398409 runs-on : ubuntu-latest
@@ -420,4 +431,3 @@ jobs:
420431 else
421432 echo '### Good job! All the required jobs passed 🚀' >> $GITHUB_STEP_SUMMARY
422433 fi
423-
0 commit comments