diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ebec7c..c3d6984 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,13 @@ concurrency: # The runner label tracks the Xcode major version, not the OS: GitHub moved the Xcode 27 image from # macOS 26 to macOS 27 under this same label. Nothing here should be pinned to an OS assumption. jobs: + route: + uses: RISCfuture/ci-workflows/.github/workflows/minerva-route.yml@1.1.0 + permissions: + contents: read ci: - uses: RISCfuture/XCUITestKit/.github/workflows/ios-ci.yml@1.2.1 + needs: route + uses: RISCfuture/XCUITestKit/.github/workflows/ios-ci.yml@1.3.0 with: scheme: "SF50 TOLD" unit-test-plan: "SF50 Shared Unit Tests" @@ -24,13 +29,13 @@ jobs: test-execution-time-allowance: 900 build-matrix: | {"include":[ - {"ios-label":"latest","runner":"xcode-27","device":"iPhone 17 Pro","device-type":"com.apple.CoreSimulator.SimDeviceType.iPhone-17-Pro","os-version":"","xcode-version":"latest-stable"} + {"ios-label":"latest","runner":${{ needs.route.outputs.xcode-27 }},"device":"iPhone 17 Pro","device-type":"com.apple.CoreSimulator.SimDeviceType.iPhone-17-Pro","os-version":"","xcode-version":"latest-stable"} ]} ui-matrix: | {"include":[ - {"ios-label":"latest","runner":"xcode-27","device":"iPhone 17 Pro","device-type":"com.apple.CoreSimulator.SimDeviceType.iPhone-17-Pro","os-version":"","xcode-version":"latest-stable"}, - {"ios-label":"latest","runner":"xcode-27","device":"iPad Pro 13-inch (M5)","device-type":"com.apple.CoreSimulator.SimDeviceType.iPad-Pro-13-inch-M5-12GB","os-version":"","xcode-version":"latest-stable"}, - {"ios-label":"latest","runner":"xcode-27","device":"iPhone Duo","device-type":"com.apple.CoreSimulator.SimDeviceType.iPhone-Duo","os-version":"","xcode-version":"latest-stable"} + {"ios-label":"latest","runner":${{ needs.route.outputs.xcode-27 }},"device":"iPhone 17 Pro","device-type":"com.apple.CoreSimulator.SimDeviceType.iPhone-17-Pro","os-version":"","xcode-version":"latest-stable"}, + {"ios-label":"latest","runner":${{ needs.route.outputs.xcode-27 }},"device":"iPad Pro 13-inch (M5)","device-type":"com.apple.CoreSimulator.SimDeviceType.iPad-Pro-13-inch-M5-12GB","os-version":"","xcode-version":"latest-stable"}, + {"ios-label":"latest","runner":${{ needs.route.outputs.xcode-27 }},"device":"iPhone Duo","device-type":"com.apple.CoreSimulator.SimDeviceType.iPhone-Duo","os-version":"","xcode-version":"latest-stable"} ]} secret-file-path: "SF50 TOLD/NOTAM/NOTAMAPIConfig.xcconfig" secret-file-template: | @@ -42,7 +47,8 @@ jobs: docs: name: Build Documentation - runs-on: xcode-27 + needs: route + runs-on: ${{ fromJSON(needs.route.outputs.xcode-27) }} steps: - uses: actions/checkout@v7.0.1 - name: Generate NOTAM API config diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index aa655ed..5319117 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,9 +11,14 @@ concurrency: cancel-in-progress: true jobs: + route: + uses: RISCfuture/ci-workflows/.github/workflows/minerva-route.yml@1.1.0 + permissions: + contents: read swiftlint: name: Run SwiftLint - runs-on: macos-latest + needs: route + runs-on: ${{ fromJSON(needs.route.outputs.macos-latest) }} steps: - uses: actions/checkout@v7.0.1 - uses: SwiftyLab/setup-swift@v1.14.2 diff --git a/.github/workflows/periphery.yml b/.github/workflows/periphery.yml index fec52bb..ddefcc4 100644 --- a/.github/workflows/periphery.yml +++ b/.github/workflows/periphery.yml @@ -13,6 +13,7 @@ concurrency: jobs: periphery: name: Run Periphery + # Spotlight indexing is disabled with sudo, which Minerva does not allow. runs-on: xcode-27 if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository permissions: diff --git a/.github/workflows/publish-nav-data-store.yml b/.github/workflows/publish-nav-data-store.yml index 7e51f08..4ee9e39 100644 --- a/.github/workflows/publish-nav-data-store.yml +++ b/.github/workflows/publish-nav-data-store.yml @@ -31,9 +31,15 @@ permissions: contents: read jobs: + route: + uses: RISCfuture/ci-workflows/.github/workflows/minerva-route.yml@1.1.0 + permissions: + contents: read + publish: name: Build and publish the store - runs-on: xcode-27 + needs: route + runs-on: ${{ fromJSON(needs.route.outputs.macos-27) }} steps: - uses: actions/checkout@v7.0.1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b347b4..cde047e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,12 +28,17 @@ concurrency: cancel-in-progress: false jobs: + route: + uses: RISCfuture/ci-workflows/.github/workflows/minerva-route.yml@1.1.0 + permissions: + contents: read release: - uses: RISCfuture/XCUITestKit/.github/workflows/ios-release.yml@1.2.1 + needs: route + uses: RISCfuture/XCUITestKit/.github/workflows/ios-release.yml@1.3.0 with: # Required by ios-release.yml, which deliberately defaults no runner so a runner-image # bump stays each app's own decision. - runner: xcode-27 + runner: ${{ needs.route.outputs.xcode-27 }} platforms: '["iOS"]' version: ${{ inputs.version || github.ref_name }} certificates-repo: RISCfuture/certificates