Skip to content

update

update #288

Workflow file for this run

name: Build
permissions:
contents: read
pull-requests: write
on: [push, pull_request, workflow_dispatch]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
go-version: ["1.23"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Make
run: make build-all
- name: Check Cross-Compilation
run: make check-cross-compile
- name: Check if manual build
id: manual_build
if: github.event_name == 'workflow_dispatch'
run: echo "is_manual_build=true" >> $GITHUB_OUTPUT
- name: Upload Build as Artifact (macOS)
if: steps.manual_build.outputs.is_manual_build == 'true'
uses: actions/upload-artifact@v4
with:
name: macos_amd-${{ matrix.go-version }}
path: dist/macos_amd
- name: Upload Build as Artifact (Linux)
if: steps.manual_build.outputs.is_manual_build == 'true'
uses: actions/upload-artifact@v4
with:
name: linux-${{ matrix.go-version }}
path: dist/linux
- name: Upload Build as Artifact (Windows)
if: steps.manual_build.outputs.is_manual_build == 'true'
uses: actions/upload-artifact@v4
with:
name: windows-${{ matrix.go-version }}
path: dist/windows