Skip to content

Commit 1569ecd

Browse files
authored
Merge pull request #6 from OpenCHAMI/attest
Attest ARM build
2 parents 78f4cce + 8b9a119 commit 1569ecd

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/build_and_release_image.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ jobs:
6767
uses: actions/attest-build-provenance@v1
6868
with:
6969
subject-path: dist/pcs_linux_amd64_v3/power-control
70-
# - name: Attest power-control binary arm64
71-
# uses: actions/attest-build-provenance@v1
72-
# with:
73-
# subject-path: dist/pcs_linux_arm64_v8.0/power-control
70+
- name: Attest power-control binary arm64
71+
uses: actions/attest-build-provenance@v1
72+
with:
73+
subject-path: dist/pcs_linux_arm64_v8.0/power-control
7474
- name: Generate build provenance
7575
uses: actions/attest-build-provenance@v1
7676
with:

.goreleaser.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,18 @@ builds:
1212
binary: power-control
1313
goos:
1414
- linux
15-
- darwin
16-
- windows
1715
goarch:
1816
- amd64
1917
- arm64
2018
goamd64:
2119
- v3
2220
env:
2321
- CGO_ENABLED=1
22+
- >-
23+
{{- if eq .Os "linux" }}
24+
{{- if eq .Arch "arm64"}}CC=aarch64-linux-gnu-gcc{{- end }}
25+
{{- end }}
26+
2427
ldflags:
2528
- "-s -w -X main.GitCommit={{.Commit}} \
2629
-X main.BuildTime={{.Timestamp}} \

0 commit comments

Comments
 (0)