diff --git a/.github/workflows/mac-dmg.yml b/.github/workflows/mac-dmg.yml index 1ba5822e3..0d175fbf9 100644 --- a/.github/workflows/mac-dmg.yml +++ b/.github/workflows/mac-dmg.yml @@ -14,17 +14,28 @@ env: jobs: build: - name: Build Cryptomator.app - runs-on: macos-11 + name: Build Cryptomator.app for ${{ matrix.output-suffix }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + include: + - os: macos-11 + architecture: x64 + output-suffix: x64 + - os: [self-hosted, macOS, ARM64] + architecture: aarch64 + output-suffix: arm64 steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Setup Java - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: ${{ env.JAVA_VERSION }} + architecture: ${{ matrix.architecture }} cache: 'maven' - id: versions name: Apply version information @@ -186,7 +197,7 @@ jobs: --icon ".background" 128 758 --icon ".fseventsd" 320 758 --icon ".VolumeIcon.icns" 512 758 - Cryptomator-${VERSION_NO}.dmg dmg + Cryptomator-${VERSION_NO}-${{ matrix.output-suffix }}.dmg dmg env: VERSION_NO: ${{ steps.versions.outputs.semVerNum }} - name: Notarize .dmg @@ -198,7 +209,7 @@ jobs: password: ${{ secrets.MACOS_NOTARIZATION_PW }} team-id: ${{ secrets.MACOS_NOTARIZATION_TEAM_ID }} - name: Add possible alpha/beta tags to installer name - run: mv Cryptomator-*.dmg Cryptomator-${{ steps.versions.outputs.semVerStr }}.dmg + run: mv Cryptomator-*.dmg Cryptomator-${{ steps.versions.outputs.semVerStr }}-${{ matrix.output-suffix }}.dmg - name: Create detached GPG signature with key 615D449FE6E6A235 run: | echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import @@ -213,7 +224,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v3 with: - name: dmg + name: dmg-${{ matrix.output-suffix }} path: Cryptomator-*.dmg if-no-files-found: error - name: Publish dmg on GitHub Releases @@ -225,5 +236,3 @@ jobs: files: | Cryptomator-*.dmg Cryptomator-*.asc - -