Skip to content

Commit 6db6899

Browse files
committed
Sign the build commits so they can be used on macOS
1 parent 66387bf commit 6db6899

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,16 @@ jobs:
6666
architecture: ${{ matrix.arch }}
6767
- name: Setup Ant
6868
uses: cedx/setup-ant@v3
69+
- name: Install Certificates for Code Signing
70+
if: ${{ matrix.os_prefix == 'macos' }}
71+
uses: apple-actions/import-codesign-certs@v3
72+
with:
73+
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
74+
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
6975
- name: Build Release
7076
run: ant -noinput -buildfile build/build.xml ${{ matrix.os_prefix }}-dist -Dversion="${{ github.sha }}"
77+
with:
78+
PROCESSING_APP_SIGNING: true
7179
- name: Add artifact
7280
uses: actions/upload-artifact@v4
7381
with:

.github/workflows/pull_request.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,16 @@ jobs:
5151
architecture: ${{ matrix.arch }}
5252
- name: Setup Ant
5353
uses: cedx/setup-ant@v3
54+
- name: Install Certificates for Code Signing
55+
if: ${{ matrix.os_prefix == 'macos' }}
56+
uses: apple-actions/import-codesign-certs@v3
57+
with:
58+
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
59+
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
5460
- name: Build Release
5561
run: ant -noinput -buildfile build/build.xml ${{ matrix.os_prefix }}-dist -Dversion="${{ github.sha }}"
62+
with:
63+
PROCESSING_APP_SIGNING: true
5664
- name: Add artifact
5765
uses: actions/upload-artifact@v3
5866
id: upload

build/build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@
778778
</exec>
779779
</target>
780780

781-
<target name="macos-dist-sign" if="env.PROCESSING_APP_PASSWORD">
781+
<target name="macos-dist-sign" if="env.PROCESSING_APP_PASSWORD | env.PROCESSING_APP_SIGNING">
782782
<echo>
783783
Code signing will only work if you have a $99/yr Apple developer ID.
784784
</echo>

0 commit comments

Comments
 (0)