Skip to content

Commit 954f560

Browse files
ci: continuously check that musl builds of cargo-codspeed works
1 parent 88d41d9 commit 954f560

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,26 @@ jobs:
122122
mode: walltime
123123
token: ${{ secrets.CODSPEED_TOKEN }}
124124

125+
musl-build-check:
126+
runs-on: ubuntu-latest
127+
strategy:
128+
matrix:
129+
target:
130+
- x86_64-unknown-linux-musl
131+
- aarch64-unknown-linux-musl
132+
steps:
133+
- uses: actions/checkout@v4
134+
with:
135+
submodules: true
136+
- uses: moonrepo/setup-rust@v1
137+
with:
138+
targets: ${{ matrix.target }}
139+
140+
- name: Install musl tools
141+
run: sudo apt-get update && sudo apt-get install -y musl-tools
142+
143+
- run: cargo build --locked --release --bin cargo-codspeed --target ${{ matrix.target }}
144+
125145
check:
126146
runs-on: ubuntu-latest
127147
if: always()
@@ -132,6 +152,7 @@ jobs:
132152
- tests
133153
- compat-integration-test-instrumentation
134154
- compat-integration-test-walltime
155+
- musl-build-check
135156
steps:
136157
- uses: re-actors/alls-green@release/v1
137158
with:

0 commit comments

Comments
 (0)