forked from kristoff-it/zine
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.1 KB
/
release.yml
File metadata and controls
50 lines (42 loc) · 1.1 KB
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
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-linux
- os: ubuntu-latest
target: aarch64-linux
- os: macos-latest
target: aarch64-macos
- os: macos-latest
target: x86_64-macos
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Zig
uses: mlugg/setup-zig@v2
- name: Build
run: zig build -Doptimize=ReleaseFast -Dtarget=${{ matrix.target }}
- name: Package
run: |
mkdir -p dist
cp zig-out/bin/zine dist/zine
cd dist
tar -czvf ../zine-${{ github.ref_name }}-${{ matrix.target }}.tar.gz zine
- name: Upload Release Assets
uses: softprops/action-gh-release@v2
with:
files: zine-${{ github.ref_name }}-${{ matrix.target }}.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}