-
Notifications
You must be signed in to change notification settings - Fork 37
49 lines (46 loc) · 1.19 KB
/
build.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
name: Build
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build-matrix:
name: Matrix
strategy:
matrix:
os:
- runner: ubuntu-latest
name: linux
static: true
- runner: macos-latest
name: macos-intel
static: false
- runner: macos-14
name: macos-arm64
static: true
runs-on: ${{ matrix.os.runner }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: open-policy-agent/setup-opa@v2
with:
version: edge
static: ${{ matrix.os.static }}
- run: npm install -g markdownlint-cli
- run: go install git.sr.ht/~charles/rq/cmd/rq@latest
- run: build/do.rq pull_request
- uses: golangci/[email protected]
if: matrix.os.name == 'linux'
with:
version: v1.56.1
- uses: actions/upload-artifact@v4
with:
name: regal-${{ matrix.os.name }}
path: regal