From 1c29f9926abe86fa2e2ca366e9923543d1bc4e83 Mon Sep 17 00:00:00 2001 From: lite Date: Sun, 17 May 2026 16:27:44 -0400 Subject: [PATCH] ci: add GitHub Actions build workflow for Linux and Windows - Build on push/PR to main - Cross-compile for linux/amd64 and windows/amd64 - Upload build artifacts --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..6eef313 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux, windows] + goarch: [amd64] + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - name: Build + env: + GOOS: ${{ matrix.goos }} + GOARCH: ${{ matrix.goarch }} + run: go build -o verifactu-api-${{ matrix.goos }}-${{ matrix.goarch }} . + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: verifactu-api-${{ matrix.goos }}-${{ matrix.goarch }} + path: verifactu-api-${{ matrix.goos }}-${{ matrix.goarch }}