|
98 | 98 | - commit-boost-signer |
99 | 99 | include: |
100 | 100 | # - target: x86_64-apple-darwin |
101 | | - # os: macos-latest-large |
| 101 | + # os: macos-latest-large |
| 102 | + # package-suffix: x86-64 |
102 | 103 | - target: aarch64-apple-darwin |
103 | 104 | os: macos-latest |
| 105 | + package-suffix: arm64 |
104 | 106 | runs-on: ${{ matrix.os }} |
105 | 107 | steps: |
106 | 108 | - name: Checkout code |
@@ -145,18 +147,18 @@ jobs: |
145 | 147 | - name: Build binary (Darwin) |
146 | 148 | run: cargo build --release --target ${{ matrix.target }} --bin ${{ matrix.name }} |
147 | 149 |
|
148 | | - - name: Package binary (Unix) |
| 150 | + - name: Package binary (Darwin) |
149 | 151 | run: | |
150 | 152 | 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 ../../../ |
153 | 155 |
|
154 | 156 | - name: Upload artifact |
155 | 157 | uses: actions/upload-artifact@v4 |
156 | 158 | with: |
157 | | - name: ${{ matrix.name }}-${{ github.ref_name }}-${{ matrix.target }} |
| 159 | + name: ${{ matrix.name }}-${{ github.ref_name }}-darwin_${{ matrix.package-suffix }} |
158 | 160 | path: | |
159 | | - ${{ matrix.name }}-${{ github.ref_name }}-${{ matrix.target }}.tar.gz |
| 161 | + ${{ matrix.name }}-${{ github.ref_name }}-darwin_${{ matrix.package-suffix }}.tar.gz |
160 | 162 |
|
161 | 163 | # Builds the PBS Docker image |
162 | 164 | build-and-push-pbs-docker: |
@@ -208,8 +210,6 @@ jobs: |
208 | 210 | tags: | |
209 | 211 | ghcr.io/commit-boost/pbs:${{ github.ref_name }} |
210 | 212 | ${{ !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 |
213 | 213 | file: provisioning/pbs.Dockerfile |
214 | 214 |
|
215 | 215 | # Builds the Signer Docker image |
@@ -262,8 +262,6 @@ jobs: |
262 | 262 | tags: | |
263 | 263 | ghcr.io/commit-boost/signer:${{ github.ref_name }} |
264 | 264 | ${{ !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 |
267 | 265 | file: provisioning/signer.Dockerfile |
268 | 266 |
|
269 | 267 | # Creates a draft release on GitHub with the binaries |
|
0 commit comments