generated from falcosecurity/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 40
45 lines (39 loc) · 988 Bytes
/
ci.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
name: CI build
on:
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.21
- name: Build
run: make build
- name: Test
run: make test
build-and-test-arm64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: uraimo/[email protected]
name: Run aarch64 build 🏎️
with:
arch: aarch64
distro: alpine_latest
githubToken: ${{ github.token }}
install: |
apk update
apk add gcc musl-dev make bash git go
run: |
git config --global --add safe.directory ${{ github.workspace }}
make build
TEST_FLAGS=-v make test