forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (55 loc) · 1.45 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
54
55
56
57
58
59
60
name: release-static
on:
push:
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
release-linux-static:
name: release-${{ matrix.arch }}-linux-static
runs-on:
- ${{ matrix.runner_tag }}
- Linux
- podman
strategy:
matrix:
include:
- arch: x86_64
runner_tag: X64
- arch: aarch64
runner_tag: ARM64
steps:
- name: checkout
uses: actions/checkout@v4
with:
submodules: true
- name: build-image
shell: bash
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: build & test
shell: bash
run: |
podman run \
--env GITHUB_REF_NAME=$GITHUB_REF_NAME \
--init \
--network host \
--rm \
--volume $PWD:/workspace \
--workdir /workspace \
rust:alpine-mimalloc \
/workspace/build-static.sh
- name: upload-artifact
uses: actions/upload-artifact@v4
with:
name: binaryen-${{ matrix.arch }}-linux-static
path: binaryen-*-${{ matrix.arch }}-linux-static.tar.gz