-
Notifications
You must be signed in to change notification settings - Fork 21
43 lines (41 loc) · 959 Bytes
/
pr.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
name: PR Build
on:
pull_request:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
os: [linux, darwin, windows]
arch: [amd64, 386, arm64]
exclude:
- os: darwin
arch: 386
- os: windows
arch: arm64
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Checkout Code
uses: actions/checkout@v3
- name: Build Code
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: go build -o build/terraform-backend-git-${{ matrix.os }}-${{ matrix.arch }}
docker-build:
name: Docker
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Build
id: docker_build
uses: docker/build-push-action@v3
with:
push: false