Something went wrong. Try again.
An auto tiler for macOS
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264name: CI
on: push: branches: [main] tags-ignore: ['v*'] pull_request: workflow_call: inputs: ref: description: Commit to test in a secret-free checkout required: false default: '' type: string
permissions: contents: read
concurrency: group: ci-${{ github.event_name }}-${{ github.ref }}-${{ inputs.ref || 'branch' }} cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }}
env: PARCEL_E2E: '0' PARCEL_NATIVE_HOST: '0'
jobs: build: name: Build once runs-on: macos-15 timeout-minutes: 20 steps: - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 with: ref: ${{ inputs.ref || github.sha }} persist-credentials: false - uses: ./.github/actions/swift - name: Restore Swift dependencies only uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 with: path: | .build/checkouts .build/repositories .build/artifacts key: swiftpm-deps-v2-macos15-${{ runner.arch }}-${{ hashFiles('.xcode-version', 'Package.swift', 'Package.resolved', 'mise.toml') }}-${{ inputs.ref || github.sha }} restore-keys: | swiftpm-deps-v2-macos15-${{ runner.arch }}-${{ hashFiles('.xcode-version', 'Package.swift', 'Package.resolved', 'mise.toml') }}- - name: Build binaries and every root test target run: Scripts/swift-build.sh --build-tests - name: Archive build for the other secret-free jobs run: | mkdir -p build-transfer tar -czf build-transfer/swift-build.tar.gz .build - name: Share build uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: swift-build path: build-transfer/swift-build.tar.gz compression-level: 0 if-no-files-found: error retention-days: 1 - name: Save cache only from main pushes if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: actions/cache/save@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 with: path: | .build/checkouts .build/repositories .build/artifacts key: swiftpm-deps-v2-macos15-${{ runner.arch }}-${{ hashFiles('.xcode-version', 'Package.swift', 'Package.resolved', 'mise.toml') }}-${{ inputs.ref || github.sha }}
lint: name: Lint and format needs: build env: PARCEL_DEV_BINARY: ${{ github.workspace }}/.build/debug/parcel-dev PARCEL_TEST_SKIP_BUILD: '1' runs-on: macos-15 timeout-minutes: 10 steps: - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 with: ref: ${{ inputs.ref || github.sha }} persist-credentials: false - uses: ./.github/actions/swift - uses: ./.github/actions/restore-build - run: mise run lint
unit: name: Screen-free unit tests needs: build env: PARCEL_DEV_BINARY: ${{ github.workspace }}/.build/debug/parcel-dev PARCEL_TEST_SKIP_BUILD: '1' runs-on: macos-15 timeout-minutes: 15 steps: - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 with: ref: ${{ inputs.ref || github.sha }} persist-credentials: false - uses: ./.github/actions/swift - uses: ./.github/actions/restore-build - name: Positively selected unit tests, no GUI or native input run: mise run test - name: Save unit results if: always() uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: junit-unit path: build/junit*.xml if-no-files-found: error retention-days: 7
scripts: name: Script and subprocess tests needs: build env: PARCEL_DEV_BINARY: ${{ github.workspace }}/.build/debug/parcel-dev PARCEL_TEST_SKIP_BUILD: '1' runs-on: macos-15 timeout-minutes: 20 steps: - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 with: ref: ${{ inputs.ref || github.sha }} persist-credentials: false - uses: ./.github/actions/swift - uses: ./.github/actions/restore-build - name: Root tooling suites once, then every shell fixture run: mise run test:scripts - name: Publish every shell outcome, including failures if: always() run: | if [[ -f build/script-summary.md ]]; then cat build/script-summary.md >> "$GITHUB_STEP_SUMMARY" else printf 'Script lane did not produce a summary. See the failed setup step.\n' >> "$GITHUB_STEP_SUMMARY" fi - name: Save script results and failure logs if: always() uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: junit-scripts path: | build/junit*.xml build/script-results.json build/script-summary.md build/*.log if-no-files-found: error retention-days: 7
i18n: name: Catalog and dependency audit needs: build env: PARCEL_DEV_BINARY: ${{ github.workspace }}/.build/debug/parcel-dev PARCEL_TEST_SKIP_BUILD: '1' runs-on: macos-15 timeout-minutes: 10 steps: - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 with: ref: ${{ inputs.ref || github.sha }} persist-credentials: false - uses: ./.github/actions/swift - uses: ./.github/actions/restore-build - name: Audit all shipped locales and reviewed dependency licenses run: Scripts/check-ci-audits.sh "$PWD" "$PWD/build/ci-audits" - name: Publish locale and license status even on failure if: always() run: | for report in build/ci-audits/*.md; do if [[ -f $report ]]; then cat "$report" >> "$GITHUB_STEP_SUMMARY"; fi done - name: Save audit results if: always() uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: catalog-and-license-audit path: build/ci-audits if-no-files-found: error retention-days: 7
security: name: Secrets and workflow security runs-on: macos-15 timeout-minutes: 10 steps: - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 with: ref: ${{ inputs.ref || github.sha }} fetch-depth: 0 persist-credentials: false - uses: ./.github/actions/swift - name: Scan full history with redacted findings run: | mkdir -p build gitleaks git --redact --report-format sarif --report-path build/gitleaks.sarif . - name: Scan workflows without tokens or network access if: always() run: zizmor --offline --pedantic --config .github/zizmor.yml --format github .github - name: Save redacted secret scan if: always() uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: secret-scan path: build/gitleaks.sarif if-no-files-found: error retention-days: 7
bench: name: Benchmark smoke, not certification needs: build env: PARCEL_DEV_BINARY: ${{ github.workspace }}/.build/debug/parcel-dev PARCEL_TEST_SKIP_BUILD: '1' runs-on: macos-15 timeout-minutes: 10 steps: - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 with: ref: ${{ inputs.ref || github.sha }} persist-credentials: false - uses: ./.github/actions/swift - uses: ./.github/actions/restore-build - name: Debug smoke reuses the root build; does not certify performance budgets run: mise run bench:smoke - name: Save benchmark results if: always() uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: benchmark-smoke path: | build/bench-smoke.json build/bench-display*.json build/junit-bench.xml if-no-files-found: error retention-days: 7
package: name: Universal packaging rehearsal needs: build env: PARCEL_DEV_BINARY: ${{ github.workspace }}/.build/debug/parcel-dev PARCEL_TEST_SKIP_BUILD: '1' runs-on: macos-15 timeout-minutes: 30 steps: - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 with: ref: ${{ inputs.ref || github.sha }} persist-credentials: false - uses: ./.github/actions/swift - uses: ./.github/actions/restore-build - name: Universal app packaging needs a release build; developer tooling reuses the root build env: BUILD_NUMBER: ${{ github.run_number }} run: | source Scripts/product.env export "${PRODUCT_ENV_PREFIX}_VERSION=$PRODUCT_FIRST_VERSION" export "${PRODUCT_ENV_PREFIX}_BUILD_NUMBER=$BUILD_NUMBER" mise run release-dry-run