@@ -361,23 +361,49 @@ 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@9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9 # v1.12.0
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
380+ - name : install solc
381+ run : brew install solidity
382+ - name : Install resolc
383+ run : |
384+ source $HOME/.cargo/env
385+ VERSION="0.3.0"
386+ ASSET_URL="https://github.com/paritytech/revive/releases/download/v$VERSION/resolc-universal-apple-darwin"
387+ echo "Downloading resolc v$VERSION from $ASSET_URL"
388+ curl -Lsf --show-error -o $HOME/.cargo/bin/resolc "$ASSET_URL"
389+ chmod +x $HOME/.cargo/bin/resolc
390+ xattr -c $HOME/.cargo/bin/resolc
391+ resolc --version
392+ - name : Install llvm
393+ run : |
394+ brew install llvm@20
395+ brew link llvm@20
373396 - name : cargo info
374397 run : |
398+ source $HOME/.cargo/env
375399 echo "######## rustup show ########"
376400 rustup show
377401 echo "######## cargo --version ########"
378402 cargo --version
379403 - name : Run cargo check
380- run : cargo check --workspace --locked
404+ run : |
405+ source $HOME/.cargo/env
406+ cargo check --workspace --locked
381407
382408 confirm-required-test-misc-jobs-passed :
383409 runs-on : ubuntu-latest
0 commit comments