From ed4fcae5ce13146f8b713aa568685b0bde7d63de Mon Sep 17 00:00:00 2001 From: Chris Maltby Date: Fri, 15 Mar 2024 14:10:53 +0000 Subject: [PATCH] Setup certificate for codesigning in github actions --- .github/workflows/main.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0c552aac4..cd260cb98 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 @@ -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/**