-
-
Notifications
You must be signed in to change notification settings - Fork 17
49 lines (47 loc) · 1.24 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
name: Build
on:
push:
branches: [ main ]
pull_request:
# only run on PRs targeting main
branches: [ main ]
permissions:
contents: read
jobs:
linux-build:
runs-on: ubuntu-latest
container:
image: ghcr.io/hairyhenderson/gomplate-ci-build:latest
steps:
- run: |
git config --global user.email "bogus@example.com"
git config --global user.name "Someone"
- uses: actions/checkout@v4
- run: make test
- run: make test-race
fscli-build:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [ linux-amd64, linux-arm-v7, linux-arm64, linux-ppc64le, darwin-amd64, darwin-arm64, windows-amd64.exe ]
container:
image: ghcr.io/hairyhenderson/gomplate-ci-build:latest
steps:
- uses: actions/checkout@v4
- name: Build fscli
run: |
make bin/fscli_${{ matrix.platform }}
windows-build:
runs-on: windows-latest
env:
TMP: D:\a\tmp
steps:
- run: pwd
- run: |
git config --global user.email "bogus@example.com"
git config --global user.name "Someone"
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: make test