Skip to content

Commit 667dc9d

Browse files
committed
Switch update-docs workflow to macOS, tweak macOS workflow
1 parent c92e3f0 commit 667dc9d

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/swift-macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
cd Examples && \
2424
swift build --target SwiftCrossUI && \
2525
swift build --target GtkBackend && \
26+
swift build --target AppKitBackend && \
2627
swift build --target CounterExample && \
2728
swift build --target ControlsExample && \
2829
swift build --target RandomNumberGeneratorExample && \

.github/workflows/update-docs.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,24 @@ on:
66

77
jobs:
88
update-docs:
9-
runs-on: ubuntu-latest
10-
9+
runs-on: macos-14
1110
steps:
11+
- name: Force Xcode 15.4
12+
run: sudo xcode-select -switch /Applications/Xcode_15.4.app
1213
- uses: actions/checkout@v3
13-
- name: Install Dependencies
14-
run: |
15-
sudo apt update && \
16-
sudo apt install -y libgtk-4-dev clang
1714
- name: Swift Version
1815
run: swift --version
1916
- name: Compile Docs
2017
run: |
2118
set -eux
2219
23-
cd /home/runner/work/swift-cross-ui/swift-cross-ui
24-
2520
git config user.email "stackotter@stackotter.dev"
2621
git config user.name "stackotter"
2722
2823
git fetch
2924
git worktree add --checkout gh-pages origin/gh-pages
3025
3126
export DOCC_JSON_PRETTYPRINT="YES"
32-
3327
export SWIFTPM_ENABLE_COMMAND_PLUGINS=1
3428
swift package \
3529
--allow-writing-to-directory gh-pages/docs \

0 commit comments

Comments
 (0)