Skip to content

Commit 8a611c5

Browse files
paritytech-release-backport-bot[bot]alvicsamEgorPopelyaev
authored
[unstable2507] Backport #10268 (#10277)
Backport #10268 into `unstable2507` from alvicsam. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Alexander Samusev <[email protected]> Co-authored-by: EgorPopelyaev <[email protected]>
1 parent 23eaa41 commit 8a611c5

File tree

1 file changed

+33
-7
lines changed

1 file changed

+33
-7
lines changed

.github/workflows/tests-misc.yml

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)