macos-dmg: name: macOS dmg runs-on: macos-latest needs: macos-test if: github.ref_name == 'master' || github.ref_name == 'ci' env: NOTEDECK_APPLE_RELEASE_CERT_ID: ${{ secrets.NOTEDECK_APPLE_RELEASE_CERT_ID }} NOTEDECK_RELEASE_APPLE_ID: ${{ secrets.NOTEDECK_RELEASE_APPLE_ID }} NOTEDECK_APPLE_APP_SPECIFIC_PW: ${{ secrets.NOTEDECK_APPLE_APP_SPECIFIC_PW }} NOTEDECK_APPLE_TEAM_ID: ${{ secrets.NOTEDECK_APPLE_TEAM_ID }} strategy: fail-fast: false matrix: arch: [x86_64, aarch64] steps: # Checkout the repository - name: Checkout Code uses: actions/checkout@v4 - name: Install Required Tools run: | brew install create-dmg cargo install cargo-bundle rustup target add ${{ matrix.arch }}-apple-darwin - name: Import apple codesign cert uses: apple-actions/import-codesign-certs@v3 with: p12-file-base64: ${{ secrets.CERTIFICATES_P12 }} p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }} - name: Rust cache uses: Swatinem/rust-cache@v2 - name: Run macOS DMG Build Script run: ARCH=${{ matrix.arch }} ./scripts/macos_build.sh - name: Upload DMG Artifact uses: actions/upload-artifact@v4 with: name: notedeck-${{ matrix.arch }}.dmg path: packages/notedeck-${{ matrix.arch }}.dmg