-
Notifications
You must be signed in to change notification settings - Fork 4
74 lines (58 loc) · 1.8 KB
/
build.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
on: push
name: Build
jobs:
checks:
name: run
runs-on: ubuntu-latest
steps:
- name: install golang
uses: actions/setup-go@v3
- name: install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- uses: actions/checkout@v3
- name: build Linux amd64
run: make nightlight_linux_amd64
- name: run vulnerability check
run: govulncheck ./...
- name: tests
run: make tests
- name: upload Linux amd64 build
uses: actions/upload-artifact@v3
with:
name: dist
path: nightlight_linux_amd64
- name: build Linux arm7 (Raspberry Pi 32-bit)
run: make nightlight_linux_arm7
- name: upload Linux arm7 (Raspberry Pi 32-bit) build
uses: actions/upload-artifact@v3
with:
name: dist
path: nightlight_linux_arm7
- name: build Linux arm64 (Raspberry Pi 64-bit)
run: make nightlight_linux_arm64
- name: upload Linux arm64 (Raspberry Pi 64-bit) build
uses: actions/upload-artifact@v3
with:
name: dist
path: nightlight_linux_arm64
- name: build Darwin amd64 (MacOS Intel)
run: make nightlight_darwin_amd64
- name: upload Darwin amd64 (MacOS Intel) build
uses: actions/upload-artifact@v3
with:
name: dist
path: nightlight_darwin_amd64
- name: build Darwin arm64 (MacOS Apple Silicon)
run: make nightlight_darwin_arm64
- name: upload Darwin arm64 (MacOS Apple Silicon) build
uses: actions/upload-artifact@v3
with:
name: dist
path: nightlight_darwin_arm64
- name: build Windows amd64
run: make nightlight_windows_amd64
- name: upload windows build
uses: actions/upload-artifact@v3
with:
name: dist
path: nightlight_windows_amd64.exe