-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·53 lines (44 loc) · 1.35 KB
/
go.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Go
on: [push, pull_request]
env:
GO_VERSION: "1.22"
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