Skip to content

Commit c586534

Browse files
committed
Change labeling and upload linux arm64
Maintain the former no-architecture label and include both linux and darwin amd64/arm64 versions in the release
1 parent 8fad347 commit c586534

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,18 @@ jobs:
3434
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
3535
- name: Set RELEASE_NUMBER
3636
run: echo "RELEASE_NUMBER=$(echo $RELEASE_VERSION | cut -c2-)" >> $GITHUB_ENV
37+
- name: Build linux arm64 binary
38+
run: GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -mod vendor -o dist/sops-${{ env.RELEASE_VERSION }}.linux.arm64 go.mozilla.org/sops/v3/cmd/sops
3739
- name: Build darwin amd64 binary
3840
run: GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -mod vendor -o dist/sops-${{ env.RELEASE_VERSION }}.darwin.amd64 go.mozilla.org/sops/v3/cmd/sops
41+
- name: Copy darwin amd64 to have a no-architecture labeled version
42+
run: cp dist/sops-${{ env.RELEASE_VERSION }}.darwin.amd64 dist/sops-${{ env.RELEASE_VERSION }}.darwin
3943
- name: Build darwin arm64 binary
4044
run: GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -mod vendor -o dist/sops-${{ env.RELEASE_VERSION }}.darwin.arm64 go.mozilla.org/sops/v3/cmd/sops
4145
- name: Build windows binary
4246
run: GOOS=windows CGO_ENABLED=0 go build -mod vendor -o dist/sops-${{ env.RELEASE_VERSION }}.exe go.mozilla.org/sops/v3/cmd/sops
4347
- name: Copy already built linux binary
44-
run: cp tmppkg/usr/local/bin/sops dist/sops-${{ env.RELEASE_VERSION }}.linux
48+
run: cp tmppkg/usr/local/bin/sops dist/sops-${{ env.RELEASE_VERSION }}.linux && cp tmppkg/usr/local/bin/sops dist/sops-${{ env.RELEASE_VERSION }}.linux.amd64
4549
- name: Create release
4650
uses: "mozilla/action-automatic-releases@latest"
4751
with:
@@ -51,6 +55,9 @@ jobs:
5155
dist/sops-${{ env.RELEASE_VERSION }}.exe
5256
dist/sops-${{ env.RELEASE_VERSION }}.darwin.amd64
5357
dist/sops-${{ env.RELEASE_VERSION }}.darwin.arm64
58+
dist/sops-${{ env.RELEASE_VERSION }}.darwin
59+
dist/sops-${{ env.RELEASE_VERSION }}.linux.amd64
60+
dist/sops-${{ env.RELEASE_VERSION }}.linux.arm64
5461
dist/sops-${{ env.RELEASE_VERSION }}.linux
5562
dist/sops_${{ env.RELEASE_NUMBER }}_amd64.deb
5663
dist/sops-${{ env.RELEASE_NUMBER }}-1.x86_64.rpm

0 commit comments

Comments
 (0)