0.19.0 #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Binary Build | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build-binary: | |
name: Binary Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- os: darwin | |
arch: amd64 | |
- os: darwin | |
arch: arm64 | |
- os: linux | |
arch: amd64 | |
- os: linux | |
arch: arm | |
- os: linux | |
arch: arm64 | |
- os: windows | |
arch: amd64 | |
- os: windows | |
arch: arm64 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Build web components | |
run: make web | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
check-latest: true | |
cache: true | |
- name: Get current date | |
id: date | |
run: echo "date=$(date -u +"%FT%TZ")" >> $GITHUB_OUTPUT | |
- name: Build | |
run: >- | |
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} | |
make | |
OUTPUT_BINARY=./bin/${{ github.event.release.tag_name }}_${{ matrix.os }}_${{ matrix.arch }} | |
go-build | |
- name: Upload release asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./bin/${{ github.event.release.tag_name }}_${{ matrix.os }}_${{ matrix.arch }} | |
asset_name: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}.${{ matrix.os }}-${{ matrix.arch }} | |
asset_content_type: application/octet-stream |