-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.1 KB
/
build-release.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
name: build-release
env:
ZIG_VERSION: 0.11.0
mode: release
os: linux
arch: x86_64
on:
pull_request:
branches:
- fork
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-release:
strategy:
matrix:
include:
- arch: x86_64
os: linux
build_arch: amd64
name: build-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: docker/setup-buildx-action@v3
id: buildx
with:
install: true
- name: Docker build
uses: docker/build-push-action@v5
with:
context: .
push: false
build-args: |
ARCH=${{matrix.arch}}
OS=${{matrix.os}}
platforms: linux/${{matrix.build_arch}}
outputs: type=local,dest=/libc_v8.a
- name: Upload dependencies
uses: actions/upload-artifact@v3
with:
name: libc_v8-${{matrix.os}}-${{matrix.arch}}
path: /libc_v8.a