Skip to content

Commit

Permalink
WIP: Add job to test x-platform builds
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-farries committed Dec 9, 2024
1 parent 20dea94 commit 29a7e97
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,39 @@ permissions:
contents: write
packages: write
jobs:
cross-build:
name: cross-platform build
runs-on: ubuntu-24.04
container:
image: surjection/goreleaser-cross:v1.23-v2.4.8
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- uses: actions/checkout@v4

- 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: git config --global --add safe.directory $GITHUB_WORKSPACE

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: build --snapshot

- uses: actions/upload-artifact@v4
with:
name: platform-binaries
path: dist/
if-no-files-found: error

test:
name: 'test (pg: ${{ matrix.pgVersion }}, schema: ${{ matrix.testSchema }})'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 29a7e97

Please sign in to comment.