-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (41 loc) · 1.56 KB
/
release.yml
File metadata and controls
52 lines (41 loc) · 1.56 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
name: Release
on: push
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install Zig
uses: mlugg/setup-zig@v2
with:
version: 0.15.2
- name: Build Windows
run: "zig build -Dtarget=x86_64-windows -Doptimize=ReleaseSafe -Dexe_name=httpspec_windows_x86"
- name: Build Mac_x86
run: "zig build -Dtarget=x86_64-macos -Doptimize=ReleaseSafe -Dexe_name=httpspec_mac_x86"
- name: Build Mac_ARM
run: "zig build -Dtarget=aarch64-macos -Doptimize=ReleaseSafe -Dexe_name=httpspec_mac_arm"
- name: Build Linux_x86
run: "zig build -Dtarget=x86_64-linux -Doptimize=ReleaseSafe -Dexe_name=httpspec_linux_x86"
- name: Build Linux_ARM
run: "zig build -Dtarget=aarch64-linux -Doptimize=ReleaseSafe -Dexe_name=httpspec_linux_arm"
- name: Generate Checksums
run: |
cd ./zig-out/bin
sha256sum httpspec_windows_x86.exe httpspec_mac_x86 httpspec_mac_arm httpspec_linux_x86 httpspec_linux_arm > checksums.txt
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./zig-out/bin/httpspec_windows_x86.exe
./zig-out/bin/httpspec_mac_x86
./zig-out/bin/httpspec_mac_arm
./zig-out/bin/httpspec_linux_x86
./zig-out/bin/httpspec_linux_arm
./zig-out/bin/checksums.txt
LICENSE