Skip to content

Commit

Permalink
Setup certificate for codesigning in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaltby committed Mar 15, 2024
1 parent a4e25f5 commit ed4fcae
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
strategy:
matrix:
include:
- build: mac
- name: mac
os: macos-14
- build: mac-intel
- name: mac-intel
os: macos-14
# - build: win32
# os: windows-latest
Expand All @@ -40,7 +40,7 @@ jobs:
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
run: |
echo $MACOS_CERTIFICATE | base64 decode > certificate.p12
echo $MACOS_CERTIFICATE | base64 -i - --decode > certificate.p12
security create-keychain -p $KEYCHAIN_PWD build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p $KEYCHAIN_PWD build.keychain
Expand All @@ -61,32 +61,32 @@ jobs:
yarn --ignore-engines
- name: Build
run: |
if [ "${{ matrix.build }}" = "mac" ]; then
if [ "${{ matrix.name }}" = "mac" ]; then
sudo yarn make:mac
elif [ "${{ matrix.build }}" = "mac-intel" ]; then
elif [ "${{ matrix.name }}" = "mac-intel" ]; then
sudo yarn make:mac-intel
elif [ "${{ matrix.build }}" = "win32" ]; then
elif [ "${{ matrix.name }}" = "win32" ]; then
sudo dpkg --add-architecture i386
sudo apt-get -y update
sudo apt-get -y install wine wine32 mono-devel
sudo yarn make:win32
elif [ "${{ matrix.build }}" = "win64" ]; then
elif [ "${{ matrix.name }}" = "win64" ]; then
sudo dpkg --add-architecture i386
sudo apt-get -y update
sudo apt-get -y install wine wine32 wine64 mono-devel
sudo yarn make:win
elif [ "${{ matrix.build }}" = "linux" ]; then
elif [ "${{ matrix.name }}" = "linux" ]; then
sudo apt-get -y update
sudo apt-get -y install fakeroot rpm squashfs-tools
sudo yarn make:linux
fi
- name: Test
if: matrix.build == 'mac'
if: matrix.name == 'mac'
run: |
yarn test
- uses: actions/upload-artifact@v4
with:
name: build-artifacts-${{ matrix.build }}
name: build-artifacts-${{ matrix.name }}
path: |
./out/make/**

0 comments on commit ed4fcae

Please sign in to comment.