From f4ff9a6bd16295427eb7ba677f11f7cf3659b80e Mon Sep 17 00:00:00 2001 From: Andrew Farries Date: Sun, 8 Dec 2024 10:10:28 +0000 Subject: [PATCH] WIP: Add job to test x-platform builds --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e8eab627..480e0cbe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,40 @@ permissions: contents: write packages: write jobs: + build: + runs-on: ubuntu-latest + container: + image: surjection/goreleaser-cross:v1.23-v2.4.8 + env: + DOCKER_CLI_EXPERIMENTAL: "enabled" + steps: + - name: Print GoReleaser version + run: goreleaser --version + + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - run: git fetch --force --tags + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + + - name: Run GoReleaser + run: goreleaser build --snapshot + test: name: 'test (pg: ${{ matrix.pgVersion }}, schema: ${{ matrix.testSchema }})' runs-on: ubuntu-latest