Skip to content

Commit e74f284

Browse files
committed
Add targets in release.yaml
1 parent 3d12e6d commit e74f284

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

.github/workflows/release.yaml

+28-11
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,37 @@ jobs:
5252
strategy:
5353
matrix:
5454
build:
55-
- aarch64-linux-android
55+
- android-aarch64
56+
- linux-aarch64-gnu
57+
- linux-aarch64-musl
5658
- linux-x64-gnu
5759
- linux-x64-musl
60+
- macos-aarch64
5861
- macos-x64
5962
- windows-x64-msvc
6063
include:
64+
- os: ubuntu-latest # default
6165
- cargo: cargo # default; overwrite with `cross` if necessary
62-
- build: aarch64-linux-android
63-
os: ubuntu-latest
66+
- build: android-aarch64
6467
target: aarch64-linux-android
6568
cargo: cross
69+
- build: linux-aarch64-gnu
70+
target: aarch64-unknown-linux-gnu
71+
cargo: cross
72+
- build: linux-aarch64-musl
73+
target: aarch64-unknown-linux-musl
74+
cargo: cross
6675
- build: linux-x64-gnu
67-
os: ubuntu-latest
6876
target: x86_64-unknown-linux-gnu
6977
- build: linux-x64-musl
70-
os: ubuntu-latest
7178
target: x86_64-unknown-linux-musl
79+
- build: macos-aarch64
80+
# Go back ot `macos-latest` after migration is complete
81+
# See https://github.blog/changelog/2024-04-01-macos-14-sonoma-is-generally-available-and-the-latest-macos-runner-image/.
82+
os: macos-14
83+
target: aarch64-apple-darwin
7284
- build: macos-x64
73-
os: macos-latest
85+
os: macos-14
7486
target: x86_64-apple-darwin
7587
- build: windows-x64-msvc
7688
os: windows-latest
@@ -86,13 +98,18 @@ jobs:
8698
toolchain: stable
8799
targets: ${{ matrix.target }}
88100

89-
- name: Install musl-tools
90-
if: matrix.target == 'x86_64-unknown-linux-musl'
91-
run: sudo apt-get install -y --no-install-recommends musl-tools
92-
93101
- name: Install cross
94102
if: matrix.cargo == 'cross'
95-
run: cargo install --git https://github.com/cross-rs/cross.git --rev 085092c cross
103+
# The latest realese of `cross` is not able to build/link for `aarch64-linux-android`
104+
# See: https://github.com/cross-rs/cross/issues/1222
105+
# This is fixed on `main` but not yet released. To avoid a breakage somewhen in the future
106+
# pin the cross revision used to the latest HEAD at 04/2024.
107+
# Go back to taiki-e/install-action once cross 0.3 is released.
108+
uses: taiki-e/cache-cargo-install-action@v1
109+
with:
110+
tool: cross
111+
git: https://github.com/cross-rs/cross.git
112+
rev: 085092c
96113

97114
- name: Build release binary
98115
shell: bash

0 commit comments

Comments
 (0)