-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 878 Bytes
/
build.yml
File metadata and controls
38 lines (33 loc) · 878 Bytes
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
name: Build and Publish
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-linux
extra_flags: ""
- os: macos-latest
target: x86_64-macos
- os: macos-latest
target: aarch64-macos
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: '0.14.0'
- name: Build
run: |
zig build -Doptimize=ReleaseFast -Dtarget=${{ matrix.target }} ${{ matrix.extra_flags || '' }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: plscommit-${{ matrix.target }}
path: zig-out/bin/plscommit