Skip to content

Commit 53cafc0

Browse files
committed
Cleaned up the Darwin artifact step
1 parent 12c020a commit 53cafc0

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ jobs:
9898
- commit-boost-signer
9999
include:
100100
# - target: x86_64-apple-darwin
101-
# os: macos-latest-large
101+
# os: macos-latest-large
102+
# package-suffix: x86-64
102103
- target: aarch64-apple-darwin
103104
os: macos-latest
105+
package-suffix: arm64
104106
runs-on: ${{ matrix.os }}
105107
steps:
106108
- name: Checkout code
@@ -145,18 +147,18 @@ jobs:
145147
- name: Build binary (Darwin)
146148
run: cargo build --release --target ${{ matrix.target }} --bin ${{ matrix.name }}
147149

148-
- name: Package binary (Unix)
150+
- name: Package binary (Darwin)
149151
run: |
150152
cd target/${{ matrix.target }}/release
151-
tar -czvf ${{ matrix.name }}-${{ github.ref_name }}-${{ matrix.target }}.tar.gz ${{ matrix.name }}
152-
mv ${{ matrix.name }}-${{ github.ref_name }}-${{ matrix.target }}.tar.gz ../../../
153+
tar -czvf ${{ matrix.name }}-${{ github.ref_name }}-darwin_${{ matrix.package-suffix }}.tar.gz ${{ matrix.name }}
154+
mv ${{ matrix.name }}-${{ github.ref_name }}-darwin_${{ matrix.package-suffix }}.tar.gz ../../../
153155
154156
- name: Upload artifact
155157
uses: actions/upload-artifact@v4
156158
with:
157-
name: ${{ matrix.name }}-${{ github.ref_name }}-${{ matrix.target }}
159+
name: ${{ matrix.name }}-${{ github.ref_name }}-darwin_${{ matrix.package-suffix }}
158160
path: |
159-
${{ matrix.name }}-${{ github.ref_name }}-${{ matrix.target }}.tar.gz
161+
${{ matrix.name }}-${{ github.ref_name }}-darwin_${{ matrix.package-suffix }}.tar.gz
160162
161163
# Builds the PBS Docker image
162164
build-and-push-pbs-docker:
@@ -208,8 +210,6 @@ jobs:
208210
tags: |
209211
ghcr.io/commit-boost/pbs:${{ github.ref_name }}
210212
${{ !contains(github.ref_name, 'rc') && 'ghcr.io/commit-boost/pbs:latest' || '' }}
211-
cache-from: type=registry,ref=ghcr.io/commit-boost/pbs:buildcache
212-
cache-to: type=registry,ref=ghcr.io/commit-boost/pbs:buildcache,mode=max
213213
file: provisioning/pbs.Dockerfile
214214

215215
# Builds the Signer Docker image
@@ -262,8 +262,6 @@ jobs:
262262
tags: |
263263
ghcr.io/commit-boost/signer:${{ github.ref_name }}
264264
${{ !contains(github.ref_name, 'rc') && 'ghcr.io/commit-boost/signer:latest' || '' }}
265-
cache-from: type=registry,ref=ghcr.io/commit-boost/signer:buildcache
266-
cache-to: type=registry,ref=ghcr.io/commit-boost/signer:buildcache,mode=max
267265
file: provisioning/signer.Dockerfile
268266

269267
# Creates a draft release on GitHub with the binaries

0 commit comments

Comments
 (0)