Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

ci: run the home/ios Swift rigs on a macOS runner, where a skip fails (#777)

nyblnetf1a9fdfd8eb2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index eab1d783..5114db79 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2681,6 +2681,31 @@ jobs:
# replaces it with the real workbook.
run: node scripts/test-dash-gate-browser.mjs
+ home-ios-swift:
+ # The home/ios Swift rigs need CryptoKit, Security and LocalAuthentication,
+ # so on the ubuntu validate job they print SKIPPED and pass. Here they run
+ # for real, and a rig that reports SKIPPED FAILS the step, so a missing
+ # toolchain can never pass quietly.
+ runs-on: macos-latest
+ timeout-minutes: 20
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 24
+ - name: Toolchain
+ run: sw_vers && xcrun swiftc --version
+ - name: Swift rigs (a skip fails)
+ shell: bash
+ run: |
+ set -o pipefail
+ for rig in test-tray-releases.mjs test-home-origin.mjs test-home-docstore-ios.mjs; do
+ echo "::group::$rig"
+ node "scripts/$rig" | tee "$RUNNER_TEMP/rig.out"
+ echo "::endgroup::"
+ if grep -q 'SKIPPED' "$RUNNER_TEMP/rig.out"; then echo "::error::$rig skipped on macOS"; exit 1; fi
+ done
+
home-origin-probe-browser:
# The probe that decides whether a file opened for the first time may keep
# the storage origin it had before origins followed the file. It runs in