1
1
# This workflow builds the project under the “starter” configuration, namely, what you would get
2
2
# if you ran `swift build` without any arguments. We use this to verify that we can generate the
3
3
# documentation for Unidoc itself.
4
-
5
- name : build
4
+ name : documentation
6
5
7
6
on :
8
7
push :
@@ -17,11 +16,14 @@ jobs:
17
16
env :
18
17
UNIDOC_ENABLE_INDEXSTORE : " 0"
19
18
steps :
19
+ # Important! We install an Ubuntu 22.04 Swift toolchain, and not the 24.04 one
20
+ # because the 24.04 toolchain for some reason is built with assertions enabled,
21
+ # which causes the Swift compiler to crash when building the package.
20
22
- name : Install Swift
21
23
uses : tayloraswift/swift-install-action@master
22
24
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
+ swift-prefix : " swift-5.10.1-release/ubuntu2204 /swift-5.10.1-RELEASE"
26
+ swift-id : " swift-5.10.1-RELEASE-ubuntu22 .04"
25
27
26
28
# This installs an older version of Unidoc, not the one we are testing.
27
29
- name : Install Unidoc
32
34
- name : Checkout repository
33
35
uses : actions/checkout@v3
34
36
35
- - name : Build debug
36
- run : |
37
- swift --version
38
- swift build
39
-
40
37
- name : Build documentation
41
38
run : |
42
39
unidoc compile -I .. \
@@ -52,11 +49,16 @@ jobs:
52
49
DEVELOPER_DIR : " /Applications/Xcode_15.3.app/Contents/Developer"
53
50
54
51
steps :
52
+ - name : Install Unidoc
53
+ uses : tayloraswift/swift-unidoc-action@master
54
+ with :
55
+ unidoc-version : " master"
56
+
55
57
- name : Checkout repository
56
58
uses : actions/checkout@v3
57
59
58
- - name : Build debug
60
+ - name : Build documentation
59
61
run : |
60
- swift --version
61
- swift build
62
-
62
+ unidoc compile -I .. \
63
+ --ci fail-on-errors \
64
+ --package-name swift-unidoc
0 commit comments