-
-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (58 loc) · 1.6 KB
/
release.yml
File metadata and controls
67 lines (58 loc) · 1.6 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Release
on:
push:
tags: ['v*']
permissions:
contents: write
jobs:
build:
strategy:
matrix:
include:
- target: aarch64-macos-none
os: macos-14
artifact: cljw-macos-aarch64
- target: x86_64-macos-none
os: ubuntu-24.04
artifact: cljw-macos-x86_64
- target: x86_64-linux-gnu
os: ubuntu-24.04
artifact: cljw-linux-x86_64
- target: aarch64-linux-gnu
os: ubuntu-24.04
artifact: cljw-linux-aarch64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v2
with:
version: 0.15.2
- name: Build
run: zig build -Dtarget=${{ matrix.target }} -Doptimize=ReleaseSafe
- name: Package
run: |
mkdir -p dist
cp zig-out/bin/cljw dist/
cd dist && tar czf ../${{ matrix.artifact }}.tar.gz cljw
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: ${{ matrix.artifact }}.tar.gz
release:
needs: build
runs-on: ubuntu-24.04
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Compute SHA256
run: sha256sum *.tar.gz > checksums.txt && cat checksums.txt
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
*.tar.gz
checksums.txt
generate_release_notes: true