ci: add x86_64-linux-static release #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |