forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.31 KB
/
release-static.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: release-static
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
release-static:
name: release-x86_64-linux-static
runs-on: ubuntu-24.04
steps:
- name: setup-podman
uses: TerrorJack/setup-podman@master
- name: build-image
run: |
pushd "$(mktemp -d)"
curl -f -L --retry 5 https://github.com/tweag/rust-alpine-mimalloc/archive/refs/heads/master.tar.gz | tar xz --strip-components=1
podman build \
--network host \
--pull \
--squash-all \
--tag rust:alpine-mimalloc \
.
popd
- name: checkout
uses: actions/checkout@v4
- name: checkout-submodules
run: git submodule update --init --depth 1 --jobs 2
- name: build & test
run: |
podman run \
--env GITHUB_REF_NAME=$GITHUB_REF_NAME \
--init \
--network host \
--rm \
--tmpfs /tmp:exec \
--volume $PWD:/workspace \
--workdir /workspace \
rust:alpine-mimalloc \
/workspace/build-static.sh
- name: upload-artifact
uses: actions/upload-artifact@v4
with:
name: binaryen-x86_64-linux-static
path: binaryen-*-x86_64-linux-static.tar.gz