-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (47 loc) · 1.17 KB
/
build.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
45
46
47
48
49
50
51
52
53
54
55
name: building
on:
push:
branches: ['develop']
pull_request:
branches: ['develop']
permissions:
contents: read
jobs:
make:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
go: [
'1.21',
'1.22',
]
include:
# Set the minimum Go patch version for the given Go minor
- go: '1.21'
GO_VERSION: '~1.21.0'
- go: '1.22'
GO_VERSION: '~1.22.0'
runs-on: ${{ matrix.os }}
steps:
- name: Check out the source code
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.GO_VERSION }}
check-latest: true
- name: Print environment
id: vars
run: |
printf "Using Go at $(which go) (version $(go version))\n"
printf "\n\nGo environment:\n\n"
go env
printf "\n\nSystem environment:\n\n"
env
- name: Build
run: |
sudo apt-get install -y ragel
make
- name: Ensure the parser code is updated
run: git diff --exit-code