Skip to content

Commit

Permalink
Re-add Mac signing (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson authored Nov 11, 2022
1 parent 1286990 commit 722a748
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,22 @@ jobs:
- name: Test
if: matrix.host.testable
run: make test
- name: Import Apple Developer ID Certificate
if: contains(matrix.host.os-cfg, 'macos') &&
github.repository_owner == 'wpilibsuite' &&
startsWith(github.ref, 'refs/tags/v')
uses: wpilibsuite/import-signing-certificate@v1
with:
certificate-data: ${{ secrets.APPLE_CERTIFICATE_DATA }}
certificate-passphrase: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
keychain-password: ${{ secrets.APPLE_KEYCHAIN_PASSWORD }}
- name: Sign toolchain with Apple Developer ID Certificate
if: contains(matrix.host.os-cfg, 'macos') &&
github.repository_owner == 'wpilibsuite' &&
startsWith(github.ref, 'refs/tags/v')
env:
APPLE_DEVELOPER_ID: ${{ secrets.APPLE_DEVELOPER_ID }}
run: make sign
- uses: actions/upload-artifact@v3
with:
name: roborio-academic-cortexa9_vfpv3-${{matrix.host.os-cfg}}
Expand Down Expand Up @@ -181,6 +197,22 @@ jobs:
- name: Test
if: matrix.host.testable
run: make test
- name: Import Apple Developer ID Certificate
if: contains(matrix.host.os-cfg, 'macos') &&
github.repository_owner == 'wpilibsuite' &&
startsWith(github.ref, 'refs/tags/v')
uses: wpilibsuite/import-signing-certificate@v1
with:
certificate-data: ${{ secrets.APPLE_CERTIFICATE_DATA }}
certificate-passphrase: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
keychain-password: ${{ secrets.APPLE_KEYCHAIN_PASSWORD }}
- name: Sign toolchain with Apple Developer ID Certificate
if: contains(matrix.host.os-cfg, 'macos') &&
github.repository_owner == 'wpilibsuite' &&
startsWith(github.ref, 'refs/tags/v')
env:
APPLE_DEVELOPER_ID: ${{ secrets.APPLE_DEVELOPER_ID }}
run: make sign
- uses: actions/upload-artifact@v3
with:
name: bullseye-armhf-${{matrix.host.os-cfg}}
Expand Down Expand Up @@ -262,6 +294,22 @@ jobs:
- name: Test
if: matrix.host.testable
run: make test
- name: Import Apple Developer ID Certificate
if: contains(matrix.host.os-cfg, 'macos') &&
github.repository_owner == 'wpilibsuite' &&
startsWith(github.ref, 'refs/tags/v')
uses: wpilibsuite/import-signing-certificate@v1
with:
certificate-data: ${{ secrets.APPLE_CERTIFICATE_DATA }}
certificate-passphrase: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
keychain-password: ${{ secrets.APPLE_KEYCHAIN_PASSWORD }}
- name: Sign toolchain with Apple Developer ID Certificate
if: contains(matrix.host.os-cfg, 'macos') &&
github.repository_owner == 'wpilibsuite' &&
startsWith(github.ref, 'refs/tags/v')
env:
APPLE_DEVELOPER_ID: ${{ secrets.APPLE_DEVELOPER_ID }}
run: make sign
- uses: actions/upload-artifact@v3
with:
name: bullseye-arm64-${{matrix.host.os-cfg}}
Expand Down Expand Up @@ -349,6 +397,22 @@ jobs:
- name: Test
if: matrix.host.testable
run: make test
- name: Import Apple Developer ID Certificate
if: contains(matrix.host.os-cfg, 'macos') &&
github.repository_owner == 'wpilibsuite' &&
startsWith(github.ref, 'refs/tags/v')
uses: wpilibsuite/import-signing-certificate@v1
with:
certificate-data: ${{ secrets.APPLE_CERTIFICATE_DATA }}
certificate-passphrase: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
keychain-password: ${{ secrets.APPLE_KEYCHAIN_PASSWORD }}
- name: Sign toolchain with Apple Developer ID Certificate
if: contains(matrix.host.os-cfg, 'macos') &&
github.repository_owner == 'wpilibsuite' &&
startsWith(github.ref, 'refs/tags/v')
env:
APPLE_DEVELOPER_ID: ${{ secrets.APPLE_DEVELOPER_ID }}
run: make sign
- uses: actions/upload-artifact@v3
with:
name: raspi-bullseye-armhf-${{matrix.host.os-cfg}}
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,22 @@ jobs:
- name: Test
if: matrix.host.testable
run: make test
- name: Import Apple Developer ID Certificate
if: contains(matrix.host.os-cfg, 'macos') &&
github.repository_owner == 'wpilibsuite' &&
startsWith(github.ref, 'refs/tags/v')
uses: wpilibsuite/import-signing-certificate@v1
with:
certificate-data: ${{ '{{' }} secrets.APPLE_CERTIFICATE_DATA }}
certificate-passphrase: ${{ '{{' }} secrets.APPLE_CERTIFICATE_PASSWORD }}
keychain-password: ${{ '{{' }} secrets.APPLE_KEYCHAIN_PASSWORD }}
- name: Sign toolchain with Apple Developer ID Certificate
if: contains(matrix.host.os-cfg, 'macos') &&
github.repository_owner == 'wpilibsuite' &&
startsWith(github.ref, 'refs/tags/v')
env:
APPLE_DEVELOPER_ID: ${{ '{{' }} secrets.APPLE_DEVELOPER_ID }}
run: make sign
- uses: actions/upload-artifact@v3
with:
name: {{ target.os }}-{{ target.port }}-${{ '{{' }}matrix.host.os-cfg}}
Expand Down

0 comments on commit 722a748

Please sign in to comment.