-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (45 loc) · 1.29 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
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
# Using actions/checkout causes problems with git describe and tags,
# we want upstream tags.
run: |
git clone https://github.com/${{ github.repository }} test
cd test
git checkout ${{ github.head_ref }}
git remote add upstream https://github.com/nakamochi/ndg
git fetch upstream
git -C . describe --match 'v*.*.*' --tags --abbrev=8
- name: Set up Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: '0.12.0'
- name: Lint
run: |
cd test
./tools/fmt-check.sh
- name: Test
run: |
cd test
zig build test
- name: Build SDL2
run: |
sudo apt-get -y install libsdl2-dev
cd test
zig build -Ddriver=sdl2
- name: Build X11
run: |
cd test
zig build -Ddriver=x11
- name: Build Aarch64
run: |
cd test
zig build -Ddriver=fbev -Dtarget=aarch64-linux-musl -Doptimize=ReleaseSafe -Dstrip
sha256sum zig-out/bin/nd zig-out/bin/ngui
- name: Playground
run: |
cd test
zig build guiplay btcrpc lndhc