Skip to content

Commit 75de99e

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

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

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

125+
musl-build-check:
126+
strategy:
127+
matrix:
128+
include:
129+
- target: x86_64-unknown-linux-musl
130+
runner: ubuntu-24.04
131+
- target: aarch64-unknown-linux-musl
132+
runner: codspeedhq-arm64-ubuntu-24.04
133+
134+
runs-on: ${{ matrix.runner }}
135+
steps:
136+
- uses: actions/checkout@v4
137+
with:
138+
submodules: true
139+
- uses: moonrepo/setup-rust@v1
140+
with:
141+
targets: ${{ matrix.target }}
142+
143+
- name: Install musl tools
144+
run: sudo apt-get update && sudo apt-get install -y musl-tools
145+
146+
- run: cargo build --locked --release --bin cargo-codspeed --target ${{ matrix.target }}
147+
125148
check:
126149
runs-on: ubuntu-latest
127150
if: always()
@@ -132,6 +155,7 @@ jobs:
132155
- tests
133156
- compat-integration-test-instrumentation
134157
- compat-integration-test-walltime
158+
- musl-build-check
135159
steps:
136160
- uses: re-actors/alls-green@release/v1
137161
with:

0 commit comments

Comments
 (0)