mirror of
https://github.com/daveberrys/guh.git
synced 2026-11-29 00:26:46 +08:00
workflows
This commit is contained in:
1 parent
51dbc6780b
commit
d5f6dc6fa0
1 file changed
+40
@@ -0,0 +1,40 @@
|
||||
name: GUH Builder
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build for ${{ matrix.os-name }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
os-name: Linux Ubuntu
|
||||
artifact-name: GUH-Linux
|
||||
- os: windows-latest
|
||||
os-name: Windows
|
||||
artifact-name: GUH-Windows
|
||||
- os: macos-latest
|
||||
os-name: macOS
|
||||
artifact-name: GUH-macOS
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.23'
|
||||
|
||||
- name: Build
|
||||
run: go build -o ${{ matrix.artifact-name }}
|
||||
|
||||
- name: Upload Build Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.artifact-name }}
|
||||
path: ${{ matrix.artifact-name }}
|
||||
Reference in new issue
Block a user