-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (45 loc) · 1.04 KB
/
build.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
name: build
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build:
name: build-${{ matrix.arch }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
arch:
- amd64
- arm64/v8
steps:
- name: setup-podman
uses: TerrorJack/setup-podman@master
- name: checkout
uses: actions/checkout@v4
- name: build-image
run: |
podman build \
--arch ${{ matrix.arch }} \
--network host \
--pull \
--squash-all \
--tag rust:alpine-mimalloc \
.
- name: test-image
run: |
podman run \
--arch ${{ matrix.arch }} \
--init \
--network host \
--rm \
--tmpfs /tmp:exec \
--volume $PWD:/workspace \
--workdir /workspace \
rust:alpine-mimalloc \
/workspace/test.sh
MIMALLOC_VERBOSE=1 ./bin/names
file ./bin/names