diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e8eab627..534621dc 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" + options: "--user $(id -u):$(id -g)" + 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: 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