Skip to content

Commit

Permalink
Merge pull request #869 from processing/sign-macos-prebuilds
Browse files Browse the repository at this point in the history
Sign macos prebuilds
  • Loading branch information
Stefterv authored Dec 12, 2024
2 parents c8db689 + b170b45 commit 62c7800
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,16 @@ jobs:
architecture: ${{ matrix.arch }}
- name: Setup Ant
uses: cedx/setup-ant@v3
- name: Install Certificates for Code Signing
if: ${{ matrix.os_prefix == 'macos' }}
uses: apple-actions/import-codesign-certs@v3
with:
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
- name: Build Release
run: ant -noinput -buildfile build/build.xml ${{ matrix.os_prefix }}-dist -Dversion="${{ github.sha }}"
env:
PROCESSING_APP_SIGNING: true
- name: Add artifact
uses: actions/upload-artifact@v4
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,16 @@ jobs:
architecture: ${{ matrix.arch }}
- name: Setup Ant
uses: cedx/setup-ant@v3
- name: Install Certificates for Code Signing
if: ${{ matrix.os_prefix == 'macos' }}
uses: apple-actions/import-codesign-certs@v3
with:
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
- name: Build Release
run: ant -noinput -buildfile build/build.xml ${{ matrix.os_prefix }}-dist -Dversion="${{ github.sha }}"
env:
PROCESSING_APP_SIGNING: true
- name: Add artifact
uses: actions/upload-artifact@v3
id: upload
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ jobs:
- name: Build Release
run: ant -noinput -buildfile build/build.xml ${{ matrix.os_prefix }}-dist -Dversion="${{ needs.version.outputs.version }}" -Dplatform=${{ matrix.os_prefix }}
env:
PROCESSING_APP_SIGNING: true
PROCESSING_APP_PASSWORD: ${{ secrets.PROCESSING_APP_PASSWORD }}
PROCESSING_APPLE_ID: ${{ secrets.PROCESSING_APPLE_ID }}
PROCESSING_TEAM_ID: ${{ secrets.PROCESSING_TEAM_ID }}
Expand Down
2 changes: 1 addition & 1 deletion build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@
</exec>
</target>

<target name="macos-dist-sign" if="env.PROCESSING_APP_PASSWORD">
<target name="macos-dist-sign" if="env.PROCESSING_APP_SIGNING">
<echo>
Code signing will only work if you have a $99/yr Apple developer ID.
</echo>
Expand Down

0 comments on commit 62c7800

Please sign in to comment.