PhotoCraft: An open-source, photo editor written by scratch in pure Rust
CI: no macOS on PRs or main; macOS is built and tested by releases (#1820)
Brandon Thomasbb3108cfd28a
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 5baf73fb1..f74eddbf0 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -30,9 +30,10 @@ concurrency:cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:- # Which OSes the test job runs on. main, manual runs and PRs labelled `full-ci` get all three.- # Other PRs get Linux, plus macOS and Windows when they touch code whose behaviour differs by+ # Which OSes the test job runs on. main, manual runs and PRs labelled `full-ci` get Linux and+ # Windows. Other PRs get Linux, plus Windows when they touch code whose behaviour differs by# platform: the app shell, UI, text and fonts, GPU, pen input, build scripts or the lockfile.+ # macOS is tested only by release.yml.platforms:name: select platformsruns-on: ubuntu-latest@@ -48,7 +49,9 @@ jobs:BASE: ${{ github.event.pull_request.base.sha }}FULL: ${{ contains(github.event.pull_request.labels.*.name, 'full-ci') }}run: |- all='["ubuntu-latest","macos-latest","windows-latest"]'+ # No macOS on PRs or main: the org's 5 macOS slots are kept for release builds, and+ # release.yml builds and tests macOS (a failing release is fixed and rebuilt).+ all='["ubuntu-latest","windows-latest"]'if [ "$EVENT" != pull_request ] || [ "$FULL" = true ]; thenecho "os=$all" >> "$GITHUB_OUTPUT"exit 0