-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (43 loc) · 1.1 KB
/
build.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
name: Build
# This workflow is triggered on pushes to the repository.
on:
push:
pull_request:
jobs:
build:
name: Build on ${{ matrix.go-os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
go-os: linux
- os: macos-11
go-os: darwin
- os: windows-2022
go-os: windows
binary-suffix: .exe
env:
CGO_ENABLED: '0'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch also tag info, relevant for detecting the version
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: 1.18.1
- name: Build binary
run: make
- name: Compress binary
uses: svenstaro/upx-action@2.2.0
with:
file: oidc-token-ferry${{ matrix.binary-suffix }}
args: --best
strip: false
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: oidc-token-ferry_${{ matrix.go-os }}-amd64${{ matrix.binary-suffix }}
path: oidc-token-ferry${{ matrix.binary-suffix }}