Skip to content

Merge pull request #138 from twz123/dependabot/go_modules/github.com/… #436

Merge pull request #138 from twz123/dependabot/go_modules/github.com/…

Merge pull request #138 from twz123/dependabot/go_modules/github.com/… #436

Workflow file for this run

name: Build
# This workflow is triggered on pushes to the repository.
on:
push:
pull_request:
permissions: {}
jobs:
build:
name: Build on ${{ matrix.go-os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-24.04
go-os: linux
- os: macos-14
go-os: darwin
- os: windows-2022
go-os: windows
binary-suffix: .exe
env:
CGO_ENABLED: '0'
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0 # fetch also tag info, relevant for detecting the version
persist-credentials: false
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: 1.24.1
- name: Build binary
run: make
- name: Compress binary
if: matrix.go-os != 'darwin'
uses: svenstaro/[email protected]
with:
files: |
oidc-token-ferry${{ matrix.binary-suffix }}
args: --best
strip: false
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: oidc-token-ferry_${{ matrix.go-os }}-amd64${{ matrix.binary-suffix }}
path: oidc-token-ferry${{ matrix.binary-suffix }}