-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (57 loc) · 1.45 KB
/
go-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
62
63
64
65
66
67
name: Go CI
on:
push:
branches: [ $default-branch ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./go
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22.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 frontend
- 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@v4
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@v4
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@v4
with:
name: pickup (Darwin, AMD64)
path: pickup.darwin.amd64