Skip to content

Merge pull request #6 from traktuner/renovate/actions-setup-go-5.x #29

Merge pull request #6 from traktuner/renovate/actions-setup-go-5.x

Merge pull request #6 from traktuner/renovate/actions-setup-go-5.x #29

Workflow file for this run

name: Go
on: [push, pull_request]
env:
GO_VERSION: "1.21"
GHCR_REGISTRY: ghcr.io
GHCR_REGISTRY_IMAGE: "ghcr.io/${{ github.repository }}"
jobs:
build:
runs-on: ubuntu-latest
env:
CGO_ENABLED: "0"
steps:
- uses: actions/checkout@v4
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Build binaries
run: ./ci-build-all.sh
- name: Upload linux/amd64 artifact
uses: actions/upload-artifact@v4
with:
name: docker-pgupgrade-linux-amd64
path: docker-pgupgrade-linux-amd64
if-no-files-found: error
- name: Upload linux/arm64 artifact
uses: actions/upload-artifact@v4
with:
name: docker-pgupgrade-linux-arm64
path: docker-pgupgrade-linux-arm64
if-no-files-found: error
- name: Upload macos/amd64 artifact
uses: actions/upload-artifact@v4
with:
name: docker-pgupgrade-macos-amd64
path: docker-pgupgrade-macos-amd64
if-no-files-found: error
- name: Upload macos/arm64 artifact
uses: actions/upload-artifact@v4
with:
name: docker-pgupgrade-macos-arm64
path: docker-pgupgrade-macos-arm64
if-no-files-found: error