Skip to content

Commit 7d369be

Browse files
authored
Merge ebac28d into 79e572b
2 parents 79e572b + ebac28d commit 7d369be

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+4836
-842
lines changed

.github/workflows/pre-release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,57 @@ jobs:
7777
username: ${{ secrets.QUAY_USERNAME }}
7878
password: ${{ secrets.QUAY_PASSWORD }}
7979

80+
build-binaries:
81+
needs: [ "generate-version" ]
82+
runs-on: ubuntu-latest
83+
strategy:
84+
matrix:
85+
include:
86+
- goos: linux
87+
goarch: amd64
88+
- goos: linux
89+
goarch: arm64
90+
91+
steps:
92+
- uses: actions/checkout@v2
93+
94+
- name: Set up Go
95+
uses: actions/setup-go@v5
96+
with:
97+
go-version-file: go.mod
98+
99+
- name: Build binary
100+
env:
101+
CGO_ENABLED: "0"
102+
GOOS: ${{ matrix.goos }}
103+
GOARCH: ${{ matrix.goarch }}
104+
run: go build -ldflags="-s -w" -o vcverifier-${{ matrix.goos }}-${{ matrix.goarch }} .
105+
106+
- name: Upload binary artifact
107+
uses: actions/upload-artifact@v4
108+
with:
109+
name: vcverifier-${{ matrix.goos }}-${{ matrix.goarch }}
110+
path: vcverifier-${{ matrix.goos }}-${{ matrix.goarch }}
111+
80112
git-release:
81113
needs:
82114
- generate-version
83115
- vcverifier
116+
- build-binaries
84117

85118
runs-on: ubuntu-latest
86119

87120
steps:
88121

89122
- uses: actions/checkout@v2
90123

124+
- name: Download all binary artifacts
125+
uses: actions/download-artifact@v4
126+
with:
127+
path: release-assets
128+
pattern: vcverifier-*
129+
merge-multiple: true
130+
91131
- uses: "marvinpinto/action-automatic-releases@latest"
92132
with:
93133
repo_token: "${{ secrets.GITHUB_TOKEN }}"
@@ -96,3 +136,4 @@ jobs:
96136
title: ${{ needs.generate-version.outputs.version }}
97137
files: |
98138
LICENSE
139+
release-assets/vcverifier-*

0 commit comments

Comments
 (0)