Skip to content

Commit 30f2a02

Browse files
committed
ci: add x86_64-linux-musl release
1 parent 6613acd commit 30f2a02

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

.github/workflows/musl.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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/tweag/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@v4
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/wasmtime \
39+
--workdir /workspace/wasmtime \
40+
rust:alpine-mimalloc \
41+
cargo build \
42+
--release \
43+
--bin wasmtime \
44+
--all-features \
45+
--config 'profile.release.lto = "thin"'
46+
47+
- name: test-wasmtime
48+
run: |
49+
MIMALLOC_VERBOSE=1 target/release/wasmtime --version
50+
file target/release/wasmtime
51+
52+
- name: package-wasmtime
53+
run: |
54+
mkdir wasmtime-${{ github.ref_name }}-x86_64-linux-musl
55+
mv target/release/wasmtime wasmtime-${{ github.ref_name }}-x86_64-linux-musl
56+
XZ_OPT="-T0 -9e" \
57+
tar \
58+
--sort=name \
59+
--mtime=1970-01-01T00:00:00Z \
60+
--owner=0 \
61+
--group=0 \
62+
--numeric-owner \
63+
-cJf wasmtime-${{ github.ref_name }}-x86_64-linux-musl.tar.xz wasmtime-${{ github.ref_name }}-x86_64-linux-musl
64+
65+
- name: upload-artifact
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: wasmtime-x86_64-linux-musl
69+
path: wasmtime-${{ github.ref_name }}-x86_64-linux-musl.tar.xz

0 commit comments

Comments
 (0)