-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.21 KB
/
ci.yml
File metadata and controls
54 lines (44 loc) · 1.21 KB
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
name: CI
on:
push:
branches: [ "main" ]
pull_request:
jobs:
test:
name: Go Tests (Repro Gate)
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Go test
run: |
go test ./...
gate_all_ubuntu:
name: Gate All (ubuntu-latest)
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Build digiemu (CI)
shell: bash
run: |
mkdir -p _release
version="ci-${GITHUB_SHA}"
commit="${GITHUB_SHA}"
date="${GITHUB_RUN_ID}"
CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.Version=${version} -X main.Commit=${commit} -X main.Date=${date}" -o _release/digiemu-ci-ubuntu-amd64 ./cmd/digiemu
- name: Run all gates (verify + bundles + lock)
shell: bash
run: |
./scripts/gate_all.sh _release/digiemu-ci-ubuntu-amd64