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 8, 2024
1 parent bda2485 commit cb6db24
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,43 @@ 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: chown -R "1000:1000" .
- run: ls -la
- run: git config --global --add safe.directory '*'

- run: git show
# - 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
Expand Down

0 comments on commit cb6db24

Please sign in to comment.