8
8
workflow_dispatch :
9
9
10
10
jobs :
11
- linux :
11
+ x86_64- linux :
12
12
name : linux-${{ matrix.arch }}
13
- runs-on : ubuntu-24.04
13
+ runs-on :
14
+ - X64
15
+ - Linux
16
+ - podman
14
17
strategy :
15
18
fail-fast : false
16
19
matrix :
17
- include :
18
- - arch : amd64
19
- sys : x86_64-linux
20
- - arch : arm64/v8
21
- sys : aarch64-linux
20
+ arch :
21
+ - x86_64
22
22
steps :
23
-
24
- - name : setup-podman
25
- uses : TerrorJack/setup-podman@master
26
-
27
23
- name : checkout
28
24
uses : actions/checkout@v4
29
25
30
- - name : build-image
31
- run : |
32
- pushd "$(mktemp -d)"
33
- curl -f -L --retry 5 https://github.com/tweag/rust-alpine-mimalloc/archive/refs/heads/master.tar.gz | tar xz --strip-components=1
34
- podman build \
35
- --arch ${{ matrix.arch }} \
36
- --network host \
37
- --pull \
38
- --squash-all \
39
- --tag rust:alpine-mimalloc \
40
- .
41
- popd
42
-
43
- - name : build
44
- run : |
45
- podman run \
46
- --arch ${{ matrix.arch }} \
47
- --env RUSTFLAGS="-C target-feature=+crt-static" \
48
- --init \
49
- --network host \
50
- --rm \
51
- --tmpfs /tmp:exec \
52
- --volume $PWD:/workspace \
53
- --workdir /workspace \
54
- rust:alpine-mimalloc \
55
- sh -c 'TARGET=$(rustc -vV | sed -n "s|host: ||p") && exec ./build.sh --target $TARGET'
56
-
57
- MIMALLOC_VERBOSE=1 ./bin/wasm-component-ld --help
58
- MIMALLOC_VERBOSE=1 ./bin/wasm-tools --version
59
- MIMALLOC_VERBOSE=1 ./bin/wasmtime --version
60
- MIMALLOC_VERBOSE=1 ./bin/wit-bindgen --version
61
- MIMALLOC_VERBOSE=1 ./bin/wizer --version
62
-
63
- file ./bin/wasm-component-ld
64
- file ./bin/wasm-tools
65
- file ./bin/wasmtime
66
- file ./bin/wit-bindgen
67
- file ./bin/wizer
26
+ - name : build-linux
27
+ uses : ./.github/actions/linux
68
28
69
- mkdir wasm-tools-${{ github.ref_name }}-${{ matrix.sys }}
70
- mv bin wasm-tools-${{ github.ref_name }}-${{ matrix.sys }}
71
- tar \
72
- --sort=name \
73
- --owner=0 --group=0 --numeric-owner \
74
- --use-compress-program="zstd --ultra -22 --threads=0" \
75
- -cf wasm-tools-${{ github.ref_name }}-${{ matrix.sys }}.tar.zst \
76
- wasm-tools-${{ github.ref_name }}-${{ matrix.sys }}
29
+ aarch64-linux :
30
+ name : linux-${{ matrix.arch }}
31
+ runs-on :
32
+ - ARM64
33
+ - Linux
34
+ - podman
35
+ strategy :
36
+ fail-fast : false
37
+ matrix :
38
+ arch :
39
+ - aarch64
40
+ steps :
41
+ - name : checkout
42
+ uses : actions/checkout@v4
77
43
78
- - name : upload-artifact
79
- uses : actions/upload-artifact@v4
80
- with :
81
- name : wasm-tools-${{ github.ref_name }}-${{ matrix.sys }}
82
- path : wasm-tools-${{ github.ref_name }}-${{ matrix.sys }}.tar.zst
44
+ - name : build-linux
45
+ uses : ./.github/actions/linux
83
46
84
47
darwin :
85
48
name : darwin-${{ matrix.arch }}
86
- runs-on : macos-latest
49
+ runs-on :
50
+ - ARM64
51
+ - macOS
87
52
strategy :
88
53
fail-fast : false
89
54
matrix :
90
55
arch :
91
56
- x86_64
92
57
- aarch64
93
58
steps :
94
-
95
59
- name : checkout
96
60
uses : actions/checkout@v4
97
61
111
75
112
76
mkdir wasm-tools-${{ github.ref_name }}-darwin-${{ matrix.arch }}
113
77
mv bin wasm-tools-${{ github.ref_name }}-darwin-${{ matrix.arch }}
114
- gtar \
115
- --sort=name \
116
- --owner=0 --group=0 --numeric-owner \
78
+ tar \
117
79
--use-compress-program="zstd --ultra -22 --threads=0" \
118
80
-cf wasm-tools-${{ github.ref_name }}-darwin-${{ matrix.arch }}.tar.zst \
119
81
wasm-tools-${{ github.ref_name }}-darwin-${{ matrix.arch }}
@@ -126,15 +88,15 @@ jobs:
126
88
127
89
windows :
128
90
name : windows-${{ matrix.arch }}
129
- runs-on : windows-latest
91
+ runs-on :
92
+ - X64
93
+ - Windows
130
94
strategy :
131
95
fail-fast : false
132
96
matrix :
133
97
arch :
134
98
- x86_64
135
- - aarch64
136
99
steps :
137
-
138
100
- name : checkout
139
101
uses : actions/checkout@v4
140
102
@@ -150,7 +112,7 @@ jobs:
150
112
--all-features `
151
113
--root wasm-tools-${{ github.ref_name }}-windows-${{ matrix.arch }} `
152
114
--target ${{ matrix.arch }}-pc-windows-msvc `
153
- --git https://github.com/TerrorJack /wizer.git `
115
+ --git https://github.com/haskell-wasm /wizer.git `
154
116
wizer
155
117
156
118
cargo install `
0 commit comments