Skip to content

Workflow file for this run

on:
release:
types: [created]
jobs:
releases-matrix:
name: Compile Release Binaries
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
- name: Set BUILD_TIME
run: echo BUILD_TIME=$(date +"%Y-%m-%dT%H:%M:%S%z") >> ${GITHUB_ENV}
- name: Set MIG_VERSION
run: echo MIG_VERSION=$(cat version.txt) >> ${GITHUB_ENV}
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
pre_command: export CGO_ENABLED=1 # attempting to fix macOS SQLite bug
goversion: "1.19"
binary_name: "mig"
md5sum: false
ldflags: -s -w -X "github.com/tlhunter/mig/commands.Version=${{ env.MIG_VERSION }}" -X "github.com/tlhunter/mig/commands.BuildTime=${{ env.BUILD_TIME }}"