-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.57 KB
/
main.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
51
52
53
54
name: Automatic build
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
- name: Build (Musl libc, static, x86_64)
run: ARCH=x86_64 OS=linux LIBC=musl ./build.sh
- name: Build (GLibC 2.16, x86_64)
run: ARCH=x86_64 OS=linux LIBC=gnu.2.16 ./build.sh
- name: Build (Musl libc, static, aarch64)
run: ARCH=aarch64 OS=linux LIBC=musl ./build.sh
- name: Build (GLibC 2.17, aarch64)
run: ARCH=aarch64 OS=linux LIBC=gnu.2.17 ./build.sh
- name: Build (Musl libc, static, x86)
run: ARCH=x86 OS=linux LIBC=musl ./build.sh
- name: Build (GLibC 2.16, x86)
run: ARCH=x86 OS=linux LIBC=gnu.2.16 ./build.sh
# TODO: ARM32 builds
- name: Test
run: |
zig build test
zig build test -Dtarget=x86_64-linux-gnu.2.16 -Doptimize=ReleaseSafe
zig build test -Dtarget=x86_64-linux-gnu.2.16 -Doptimize=ReleaseFast
zig build test -Dtarget=x86_64-linux-gnu.2.16 -Doptimize=ReleaseSmall
zig build test
zig build test -Dtarget=x86_64-linux-musl -Doptimize=ReleaseSafe
zig build test -Dtarget=x86_64-linux-musl -Doptimize=ReleaseFast
zig build test -Dtarget=x86_64-linux-musl -Doptimize=ReleaseSmall
- name: Upload build
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "continuous"
prerelease: true
title: "Continuous Build"
files: |
squashfuse*