From 47013a1351fa0afb26374fea8c4648973c358f68 Mon Sep 17 00:00:00 2001 From: sudoHG Date: Sun, 4 Oct 2026 23:36:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=20Intel=20=E5=92=8C=20macOS=2014=20?= =?UTF-8?q?=E7=9A=84=20CI=20=E6=9C=BA=E5=99=A8=E4=B8=8A=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E5=8E=9F=E7=94=9F=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增 Mac native tests (Intel) 与 Mac native tests (macOS 14):macos-15-intel 与 macos-14 上运行 npm test 和 Mac 界面测试,选用机器上最新的 Xcode。现有 Mac native tests 名称不变。 --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28c2840..769f318 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,3 +69,35 @@ jobs: run: npm test - name: Native UI tests run: node --test tests/mac-localization-ui.js + + mac-native-tests-other: + name: Mac native tests (${{ matrix.label }}) + runs-on: ${{ matrix.runner }} + timeout-minutes: 30 + strategy: + fail-fast: false + matrix: + include: + - label: Intel + runner: macos-15-intel + - label: macOS 14 + runner: macos-14 + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + with: + persist-credentials: false + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + with: + node-version: '22' + - name: Select the newest installed Xcode + run: | + xcode=$(ls -d /Applications/Xcode_*.app | sort -V | tail -1) + sudo xcode-select -s "$xcode/Contents/Developer" + sw_vers + uname -m + xcodebuild -version + - run: npm ci --ignore-scripts + - name: Core and native tests + run: npm test + - name: Native UI tests + run: node --test tests/mac-localization-ui.js