From d5f6dc6fa01fe3a8feddcadb2f7cb021891b658c Mon Sep 17 00:00:00 2001 From: Daveberry <84567826+daveberrys@users.noreply.github.com> Date: Fri, 12 Jun 2026 15:10:51 +0800 Subject: [PATCH] workflows --- .github/workflows/compile.yaml | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/compile.yaml diff --git a/.github/workflows/compile.yaml b/.github/workflows/compile.yaml new file mode 100644 index 0000000..19055bd --- /dev/null +++ b/.github/workflows/compile.yaml @@ -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 }} \ No newline at end of file