Skip to content

Commit c10b5c3

Browse files
committed
ci: Test with gnu and musl targets
Then we can ensure we don't end up with a similar issue that happend with containerd-shim-protos not being buildable with musl on 0.9.0. Signed-off-by: Fabiano Fidêncio <[email protected]>
1 parent 4298537 commit c10b5c3

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,28 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest, macos-latest]
18+
linux-target: [gnu, musl]
19+
exclude:
20+
- os: macos-latest
21+
linux-target: gnu
22+
- os: macos-latest
23+
linux-target: musl
1824

1925
steps:
2026
- uses: actions/checkout@v4
2127

2228
- run: ./scripts/install-protobuf.sh
2329
shell: bash
2430

25-
- run: rustup toolchain install nightly --component rustfmt
31+
- run: |
32+
case ${{ matrix.os }} in
33+
macos-latest)
34+
rustup toolchain install nightly --component rustfmt
35+
;;
36+
ubuntu-latest)
37+
rustup toolchain install nightly --component rustfmt --target x86_64-unknown-linux-${{ matrix.linux-target }}
38+
;;
39+
esac
2640
- run: cargo +nightly fmt --all -- --check
2741

2842
# the "runc" and "containerd-shim" crates have `sync` code that is not covered by the workspace

0 commit comments

Comments
 (0)