-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (53 loc) · 1.4 KB
/
ci.yaml
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
name: CI
on:
push:
branches: [ $default-branch ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
# We don't have it setup in the Makefile to avoid double-building, but 'make lint'
# requires the react build to have completed.
- run: make react
- run: make lint
- name: Go build (Linux, AMD64)
run: go build -o pickup.$GOOS.$GOARCH
env:
GOOS: linux
GOARCH: amd64
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: pickup (Linux, AMD64)
path: pickup.linux.amd64
- name: Go build (Linux, ARM5)
run: go build -o pickup.$GOOS.$GOARCH$GOARM
env:
GOOS: linux
GOARCH: arm
GOARM: 5
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: pickup (Linux, ARM5)
path: pickup.linux.arm5
- name: Go build (Darwin, ARM5)
run: go build -o pickup.$GOOS.$GOARCH
env:
GOOS: darwin
GOARCH: amd64
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: pickup (Darwin, AMD64)
path: pickup.darwin.amd64