-
Notifications
You must be signed in to change notification settings - Fork 48
59 lines (53 loc) · 1.25 KB
/
ci-pull-request.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
56
57
58
59
name: CI - Pull Request
on:
pull_request:
branches:
- master
env:
GO_VERSION: "^1.19" # any 1.x version, see go.mod file for minimum
jobs:
build-multiarch:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: darwin
arch: amd64
- os: freebsd
arch: 386
- os: freebsd
arch: amd64
- os: freebsd
arch: arm
- os: linux
arch: 386
- os: linux
arch: amd64
- os: linux
arch: arm
- os: openbsd
arch: 386
- os: openbsd
arch: amd64
- os: solaris
arch: amd64
- os: windows
arch: 386
- os: windows
arch: amd64
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true
- name: Build project
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o terraform-provider-sysdig
test:
name: Test
uses: ./.github/workflows/test.yml
secrets: inherit