From bc99ed27ae53fc036d565a20b8ae1ff9709bacf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Fri, 5 Dec 2025 17:18:16 +0100 Subject: [PATCH] ci: add an explicit build workflow --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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 000000000..19a889e0f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build + +permissions: + contents: read + +on: + pull_request: + merge_group: + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + + steps: + # Checkout should always be before setup-go to ensure caching is working + - name: Checkout + uses: actions/checkout@v6 + with: + fetch-depth: 1 + + - name: Install Go + uses: actions/setup-go@v6 + with: + go-version: stable + + - name: Verify go.mod is tidy + run: | + go mod tidy + git diff --exit-code + + - name: Build the provider + run: go build ./