Skip to content

Commit

Permalink
rust.yml job_cross_targets_macos swap moonrepo/setup-rust@v1 for Swat…
Browse files Browse the repository at this point in the history
…inem/rust-cache@v2
  • Loading branch information
jtmoon79 committed May 27, 2024
1 parent acf59ac commit dfd5f6b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,12 @@ jobs:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: moonrepo/setup-rust@v1
with:
channel: ${{ env.MSRV_UPLOAD }}
# XXX: build older `cargo-platform` to prevent error noted
# https://github.com/moonrepo/setup-rust/issues/20
bins: cargo-platform@0.1.7, cross
targets: ${{ matrix.target }}
# XXX: use `Swatinem/rust-cache@v2` not `moonrepo/setup-rust@v1`
# due to https://github.com/moonrepo/setup-rust/issues/20
- run: rustup toolchain install ${{ env.MSRV_UPLOAD }} --profile minimal
- run: rustup target add ${{ matrix.target }}
- run: cargo install cross --locked
- uses: Swatinem/rust-cache@v2
- run: |
set -eux
uname -a
Expand Down

0 comments on commit dfd5f6b

Please sign in to comment.