Skip to content

Commit 66ed8cf

Browse files
committed
ci: add x86_64-linux-musl release
1 parent 6116aae commit 66ed8cf

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

.github/workflows/musl.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: wasmtime-linux-musl
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
wasmtime-linux-musl:
10+
name: wasmtime-x86_64-linux-musl
11+
runs-on: ubuntu-latest
12+
steps:
13+
14+
- name: build-image
15+
run: |
16+
pushd "$(mktemp -d)"
17+
curl -f -L --retry 5 https://github.com/type-dance/rust-alpine-mimalloc/archive/refs/heads/master.tar.gz | tar xz --strip-components=1
18+
podman build \
19+
--network host \
20+
--pull \
21+
--squash \
22+
--tag rust:alpine-mimalloc \
23+
.
24+
popd
25+
26+
- name: checkout
27+
uses: actions/checkout@v3
28+
with:
29+
submodules: true
30+
31+
- name: build-wasmtime
32+
run: |
33+
podman run \
34+
--init \
35+
--network host \
36+
--rm \
37+
--tmpfs /tmp:exec \
38+
--volume $PWD:/workspace \
39+
--workdir /workspace \
40+
rust:alpine-mimalloc \
41+
cargo build \
42+
--release \
43+
--bin wasmtime \
44+
--all-features \
45+
--config 'profile.release.lto = "thin"' \
46+
--config 'profile.release.strip = "symbols"'
47+
48+
- name: test-wasmtime
49+
run: |
50+
target/release/wasmtime --version
51+
ldd target/release/wasmtime
52+
53+
- name: package-wasmtime
54+
run: |
55+
mkdir wasmtime-v12.0.1-x86_64-linux-musl
56+
mv target/release/wasmtime wasmtime-v12.0.1-x86_64-linux-musl
57+
XZ_OPT="-T0 -9" \
58+
tar \
59+
--sort=name \
60+
--mtime=1970-01-01T00:00:00Z \
61+
--owner=0 \
62+
--group=0 \
63+
--numeric-owner \
64+
-cJf wasmtime-v12.0.1-x86_64-linux-musl.tar.xz wasmtime-v12.0.1-x86_64-linux-musl
65+
66+
- name: upload-artifact
67+
uses: actions/upload-artifact@v3
68+
with:
69+
name: wasmtime-x86_64-linux-musl
70+
path: wasmtime-v12.0.1-x86_64-linux-musl.tar.xz

0 commit comments

Comments
 (0)