name: OS X on: push: branches: - master jobs: build: name: GPXSee runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Install Qt uses: jurplel/install-qt-action@v4 with: version: '6.9.1' modules: qtpositioning qtserialport qtimageformats - name: Create localization run: lrelease gpxsee.pro - name: Configure build run: qmake gpxsee.pro QMAKE_APPLE_DEVICE_ARCHS="x86_64h arm64" - name: Build project run: make -j3 - name: Get latest QtPBFImagePlugin run-id id: runid run: echo "runid=$(gh run list --repo tumic0/QtPBFImagePlugin --workflow 'OS X' --limit 1 --json databaseId -q '.[0].databaseId')" >> $GITHUB_OUTPUT env: GH_TOKEN: ${{ github.token }} - name: Download QtPBFImagePlugin uses: actions/download-artifact@v4 with: name: libpbf.dylib github-token: ${{ github.token }} repository: tumic0/QtPBFImagePlugin path: GPXSee.app/Contents/Plugins/imageformats merge-multiple: true run-id: ${{steps.runid.outputs.runid}} - name: Create DMG run: macdeployqt GPXSee.app -dmg -appstore-compliant - name: Upload artifacts uses: actions/upload-artifact@v4 with: path: GPXSee.dmg name: GPXSee.dmg