-
-
Notifications
You must be signed in to change notification settings - Fork 38
52 lines (43 loc) · 1.59 KB
/
Documentation.yml
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
# This workflow validates the package’s documentation. Because documentation building involves
# compiling the package, this also checks that the package itself compiles successfully on each
# supported platform.
name: documentation
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
linux:
runs-on: ubuntu-24.04
name: Ubuntu 24.04
steps:
- name: Install Swift
uses: tayloraswift/swift-install-action@master
with:
swift-prefix: "swift-6.0.3-release/ubuntu2404/swift-6.0.3-RELEASE"
swift-id: "swift-6.0.3-RELEASE-ubuntu24.04"
- name: Install Unidoc
uses: tayloraswift/swift-unidoc-action@master
# This clobbers everything in the current directory!
- name: Checkout repository
uses: actions/checkout@v3
- name: Validate documentation
run: |
unidoc compile \
--swift-toolchain $SWIFT_INSTALLATION \
--ci fail-on-errors \
--project-path .
macos:
runs-on: macos-15
name: macOS
steps:
- name: Install Unidoc
uses: tayloraswift/swift-unidoc-action@master
- name: Checkout repository
uses: actions/checkout@v3
- name: Validate documentation
run: |
unidoc compile \
--ci fail-on-errors \
--project-path .