File tree Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments