From 7979cd7c470589fe7d8d997f0b0884b9bbd12f1d Mon Sep 17 00:00:00 2001 From: Andrew Farries Date: Sun, 8 Dec 2024 11:16:36 +0000 Subject: [PATCH] WIP: Add job to test x-platform builds --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e8eab627..166f11e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,38 @@ 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: ls -la + - run: pwd + + # - run: git fetch --force --tags + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + + - run: CGO_ENABLED-1 go build + + # - name: Run GoReleaser + # run: goreleaser build --snapshot --clean + test: name: 'test (pg: ${{ matrix.pgVersion }}, schema: ${{ matrix.testSchema }})' runs-on: ubuntu-latest