Skip to content

Commit

Permalink
Update CI to ignore old versions in M1 mac
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Feb 25, 2024
1 parent f45cdc5 commit d01d078
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,20 @@ jobs:
target:
- tool-version: 'latest'
command: 'makers --version && cargo-make make --version'
# They are releasing aarch64 binary since 0.36.7: https://github.com/sagiegurari/cargo-make/commit/ab3cac2261c0ba67ab6d7a277aff8252faec0b1c
- tool-version: '0.36.7'
command: 'makers --version && cargo-make make --version'
# Supporting olderst
# https://github.com/kachick/asdf-cargo-make/blob/8a7095692e6a880568a5b48c441ea518ef6a61cb/bin/download#L12
# https://github.com/kachick/asdf-cargo-make/blob/8a7095692e6a880568a5b48c441ea518ef6a61cb/lib/utils.bash#L59-L61
- tool-version: '0.16.0'
# makers does not exist
command: 'cargo-make make --version'
exclude:
# They are releasing aarch64 binary since 0.36.7: https://github.com/sagiegurari/cargo-make/commit/ab3cac2261c0ba67ab6d7a277aff8252faec0b1c
- os: macos-13
target:
- tool-version: '0.16.0'
runs-on: ${{ matrix.os }}
steps:
- uses: asdf-vm/actions/plugin-test@v3
Expand Down
1 change: 1 addition & 0 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ download_release() {

case "$(uname -m)" in
x86_64*) architecture="x86_64" ;;
# They are releasing aarch64 binary since 0.36.7: https://github.com/sagiegurari/cargo-make/commit/ab3cac2261c0ba67ab6d7a277aff8252faec0b1c
aarch64 | arm64) architecture="aarch64" ;;
*) fail "Unsupported architecture" ;;
esac
Expand Down

0 comments on commit d01d078

Please sign in to comment.