-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (61 loc) · 2.32 KB
/
Copy pathci.yml
File metadata and controls
68 lines (61 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: macos-26
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
# Pinned, not latest-stable: WasmKit 0.3.x declares swift-tools-version 6.3, so it needs
# Swift 6.3+. Xcode 26.5 (the macos-26 default) ships Swift 6.2.x and fails with
# "package 'wasmkit' is using Swift tools version 6.3.0 but the installed version is 6.2.4".
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '26.6'
- name: Build
run: swift build --build-tests
- name: Test
run: swift test
ios-archive:
name: iOS Archive
runs-on: macos-26
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
# Pinned, not latest-stable: WasmKit 0.3.x declares swift-tools-version 6.3, so it needs
# Swift 6.3+. Xcode 26.5 (the macos-26 default) ships Swift 6.2.x and fails with
# "package 'wasmkit' is using Swift tools version 6.3.0 but the installed version is 6.2.4".
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '26.6'
- name: Archive
working-directory: Darwin
run: |
xcodebuild archive \
-project BluetoothExplorer.xcodeproj \
-scheme "BluetoothExplorer App" \
-destination 'generic/platform=iOS' \
-archivePath "$RUNNER_TEMP/BluetoothExplorer.xcarchive" \
-skipPackagePluginValidation \
-skipMacroValidation \
CODE_SIGNING_ALLOWED=NO
- name: Verify archive contents
run: |
APP="$RUNNER_TEMP/BluetoothExplorer.xcarchive/Products/Applications/BluetoothExplorer.app"
test -d "$APP" || { echo "::error::archive did not produce BluetoothExplorer.app"; exit 1; }
# The bundled WASM parser plugins must ship inside the app.
find "$APP" -name '*.wasm' -print | tee /tmp/wasm-list
test -s /tmp/wasm-list || { echo "::error::no bundled .wasm plugins in the archive"; exit 1; }
- uses: actions/upload-artifact@v4
with:
name: ios-archive
path: ${{ runner.temp }}/BluetoothExplorer.xcarchive
retention-days: 14