-
Notifications
You must be signed in to change notification settings - Fork 8
33 lines (31 loc) · 910 Bytes
/
check.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
name: Check
on:
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: latest
- name: build frontend
working-directory: frontend
run: |
npm install
npm run build
- name: setup go
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: compile
run: |
GOOS=linux GOARCH=amd64 go build -ldflags '-w -s' -o cacao-linux-amd64
GOOS=linux GOARCH=arm64 go build -ldflags '-w -s' -o cacao-linux-arm64
GOOS=linux GOARCH=arm GOARM=7 go build -ldflags '-w -s' -o cacao-linux-armv7
GOOS=freebsd GOARCH=amd64 go build -ldflags '-w -s' -o cacao-freebsd-amd64
env:
CGO_ENABLED: 0