|
82 | 82 | # would fail on 22.04 and 24.04 (at least for now)
|
83 | 83 | # https://github.com/nix-rust/nix/issues/2418
|
84 | 84 | runs-on: ubuntu-20.04
|
85 |
| - needs: [rustfmt, minver, macos, linux_native_builds, rust_stable] |
| 85 | + needs: [rustfmt, minver, macos, x86_64_linux_native_builds, rust_stable] |
86 | 86 | strategy:
|
87 | 87 | fail-fast: false
|
88 | 88 | matrix:
|
@@ -141,9 +141,8 @@ jobs:
|
141 | 141 |
|
142 | 142 |
|
143 | 143 |
|
144 |
| - # Tasks for Linux native builds |
145 |
| - # Only test x86_64 targets on GitHub Action, leave aarch64 one in Cirrus CI. |
146 |
| - linux_native_builds: |
| 144 | + # Tasks for x86_64 Linux native builds |
| 145 | + x86_64_linux_native_builds: |
147 | 146 | runs-on: ubuntu-latest
|
148 | 147 | strategy:
|
149 | 148 | fail-fast: false
|
@@ -178,6 +177,43 @@ jobs:
|
178 | 177 |
|
179 | 178 | - name: before_cache_script
|
180 | 179 | run: sudo rm -rf $CARGO_HOME/registry/index;
|
| 180 | + |
| 181 | + # Tasks for aarch64 Linux native builds |
| 182 | + aarch64_linux_native_builds: |
| 183 | + runs-on: ubuntu-24.04-arm |
| 184 | + strategy: |
| 185 | + fail-fast: false |
| 186 | + matrix: |
| 187 | + target: [ |
| 188 | + aarch64-unknown-linux-gnu, |
| 189 | + aarch64-unknown-linux-musl, |
| 190 | + ] |
| 191 | + |
| 192 | + steps: |
| 193 | + - name: checkout |
| 194 | + uses: actions/checkout@v4 |
| 195 | + |
| 196 | + - name: setup Rust |
| 197 | + uses: dtolnay/rust-toolchain@master |
| 198 | + with: |
| 199 | + toolchain: '${{ env.MSRV }}' |
| 200 | + components: clippy |
| 201 | + |
| 202 | + - name: install targets |
| 203 | + run: rustup target add ${{ matrix.target }} |
| 204 | + |
| 205 | + - name: build |
| 206 | + uses: ./.github/actions/build |
| 207 | + with: |
| 208 | + TARGET: '${{ matrix.TARGET }}' |
| 209 | + |
| 210 | + - name: test |
| 211 | + uses: ./.github/actions/test |
| 212 | + with: |
| 213 | + TARGET: '${{ matrix.TARGET }}' |
| 214 | + |
| 215 | + - name: before_cache_script |
| 216 | + run: sudo rm -rf $CARGO_HOME/registry/index; |
181 | 217 |
|
182 | 218 | rust_stable:
|
183 | 219 | runs-on: ubuntu-latest
|
@@ -210,7 +246,7 @@ jobs:
|
210 | 246 | # Tasks for cross-compiling, but no testing
|
211 | 247 | cross_compiling:
|
212 | 248 | runs-on: ubuntu-latest
|
213 |
| - needs: [rustfmt, minver, macos, linux_native_builds, rust_stable] |
| 249 | + needs: [rustfmt, minver, macos, x86_64_linux_native_builds, rust_stable] |
214 | 250 | env:
|
215 | 251 | BUILD: check
|
216 | 252 | strategy:
|
@@ -269,7 +305,7 @@ jobs:
|
269 | 305 |
|
270 | 306 | redox:
|
271 | 307 | runs-on: ubuntu-latest
|
272 |
| - needs: [rustfmt, minver, macos, linux_native_builds, rust_stable] |
| 308 | + needs: [rustfmt, minver, macos, x86_64_linux_native_builds, rust_stable] |
273 | 309 | env:
|
274 | 310 | TARGET: x86_64-unknown-redox
|
275 | 311 | CLIPPYFLAGS: -D warnings
|
|
0 commit comments