-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (42 loc) · 1.26 KB
/
CI.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
# This is a basic workflow to help you get started with Actions
name: CI
on:
push:
branches: [master]
schedule:
- cron: "0 0 * * *" #Makes sense, we are testing against master
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-13, windows-latest]
runs-on: ${{ matrix.os }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Setup Zig
# You may pin to the exact commit or the version.
# uses: goto-bus-stop/setup-zig@41ae19e72e21b9a1380e86ff9f058db709fc8fc6
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.10.1
- run: zig version
- run: zig env
- name: Debug Build
run: zig build
- name: Release Build
run: zig build -Drelease-fast
- name: Bench
run: ./zig-out/bin/Avalanche bench
- name: Build artifacts
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
chmod +x build_all_v2.sh
./build_all_v2.sh
- name: Upload artifacts
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v3
with:
name: builds
path: artifacts/*.zip