-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (43 loc) · 1.3 KB
/
nightly.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
50
name: Nightly
on:
push:
branches: [ "main" ]
jobs:
Build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Install libarchive
run: sudo apt update && sudo apt install libarchive-dev
- name: Install zig
run: wget https://ziglang.org/builds/zig-linux-x86_64-0.12.0-dev.140+e078324db.tar.xz && tar -xvf zig-linux-x86_64-0.12.0-dev.140+e078324db.tar.xz
- name: Compile
run: ./zig-linux-x86_64-0.12.0-dev.140+e078324db/zig build -Doptimize=ReleaseFast -Dcpu=baseline
- name: Upload
uses: actions/upload-artifact@v3
with:
name: zigd-linux
path: ./zig-out/bin/zigd
Publish:
runs-on: ubuntu-latest
needs: [Build]
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Download zigd-linux artifact
uses: actions/download-artifact@v3
with:
name: zigd-linux
- name: Release
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: false
prerelease: false
tag_name: nightly-${{ github.sha }}
name: Nightly Build ${{ github.sha }}
files: zigd