Skip to content

Commit fa3f590

Browse files
committed
build Unidoc’s own documentation as part of the CI pipeline
1 parent e07a58a commit fa3f590

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,23 @@ on:
1212

1313
jobs:
1414
linux:
15-
runs-on: ubuntu-22.04
16-
name: Ubuntu 22.04
15+
runs-on: ubuntu-24.04
16+
name: Ubuntu 24.04
1717
env:
1818
UNIDOC_ENABLE_INDEXSTORE: "0"
1919
steps:
20+
- name: Install Swift
21+
uses: tayloraswift/swift-install-action@master
22+
with:
23+
swift-prefix: "swift-5.10.1-release/ubuntu2404/swift-5.10.1-RELEASE"
24+
swift-id: "swift-5.10.1-RELEASE-ubuntu24.04"
25+
26+
# This installs an older version of Unidoc, not the one we are testing.
27+
- name: Install Unidoc
28+
uses: tayloraswift/swift-unidoc-action@master
29+
with:
30+
unidoc-version: "master"
31+
2032
- name: Checkout repository
2133
uses: actions/checkout@v3
2234

@@ -25,6 +37,13 @@ jobs:
2537
swift --version
2638
swift build
2739
40+
- name: Build documentation
41+
run: |
42+
unidoc compile -I .. \
43+
--swift-toolchain $SWIFT_INSTALLATION \
44+
--ci fail-on-errors \
45+
--package-name swift-unidoc
46+
2847
macos:
2948
runs-on: macos-14
3049
name: macOS

0 commit comments

Comments
 (0)