Skip to content

Commit ab10c48

Browse files
committed
ci: add x86_64 musl job
1 parent 1bfe4b5 commit ab10c48

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/musl.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: musl
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
musl:
8+
name: musl
9+
runs-on: ubuntu-latest
10+
steps:
11+
12+
- name: deps
13+
run: |
14+
sudo apt install -y \
15+
musl-tools
16+
rustup target add x86_64-unknown-linux-musl
17+
18+
- name: checkout
19+
uses: actions/checkout@v3
20+
with:
21+
submodules: true
22+
23+
- name: build
24+
run: |
25+
cargo build \
26+
--target x86_64-unknown-linux-musl \
27+
--release \
28+
--bin wasmtime \
29+
--all-features \
30+
--config 'profile.release.lto = "thin"' \
31+
--config 'profile.release.strip = "symbols"'
32+
33+
- name: upload-artifact
34+
uses: actions/upload-artifact@v3
35+
with:
36+
name: musl-wasmtime
37+
path: target/x86_64-unknown-linux-musl/release/wasmtime

0 commit comments

Comments
 (0)