-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.02 KB
/
audit.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
name: Audit
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
audit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Verify dependencies
run: go mod verify
- name: Prepare build dir
run: mkdir build
- name: Build Linux
run: go build -ldflags "-s -w" -o build/mosaic
- name: Build Win
run: env GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o build/mosaic.exe
- name: Build Mac
run: env GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o build/mosaic-darwin
# Fix ports
#- name: Run docker compose
# run: docker compose -f docker-compose.yml up -d
#- name: Run tests
# run: go test -race -vet=off ./...
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: artifact
path: build
retention-days: 30