Skip to content

Commit

Permalink
chore: Add a CI check to run the macOS distributable binary.
Browse files Browse the repository at this point in the history
We run it on a pristine macOS instance without anything we may have done
to the build instance.
  • Loading branch information
iphydf committed Dec 15, 2024
1 parent ea0c192 commit 8620390
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build-test-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,28 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "qTox-nightly-${{ matrix.arch }}.dmg,qTox-nightly-${{ matrix.arch }}.dmg.sha256"

test-macos-distributable:
name: Test macOS distributable
needs: build-macos-distributable
strategy:
matrix:
arch: [arm64]
runs-on: ${{ matrix.arch == 'arm64' && 'macos-14' || 'macos-13' }}
permissions:
contents: write
steps:
- name: Download artifact from macOS distributable (${{ matrix.arch }})
uses: actions/download-artifact@v4
with:
name: qTox-${{ github.sha }}-${{ matrix.arch }}.dmg
path: qTox.dmg
- name: Install 7zip
run: brew install 7zip
- name: Unpack dmg
run: 7z x qTox.dmg qtox.app
- name: Run qTox
run: qtox.app/Contents/MacOS/qTox --help

build-macos-user:
name: macOS user
if: github.event_name == 'pull_request'
Expand Down

0 comments on commit 8620390

Please sign in to comment.