Skip to content

Commit 1b99e98

Browse files
committed
switch to Ubuntu 22.04 toolchain
1 parent dca55f5 commit 1b99e98

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

.github/workflows/build.yml renamed to .github/workflows/docs.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# This workflow builds the project under the “starter” configuration, namely, what you would get
22
# if you ran `swift build` without any arguments. We use this to verify that we can generate the
33
# documentation for Unidoc itself.
4-
5-
name: build
4+
name: documentation
65

76
on:
87
push:
@@ -17,11 +16,14 @@ jobs:
1716
env:
1817
UNIDOC_ENABLE_INDEXSTORE: "0"
1918
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.
2022
- name: Install Swift
2123
uses: tayloraswift/swift-install-action@master
2224
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"
2527

2628
# This installs an older version of Unidoc, not the one we are testing.
2729
- name: Install Unidoc
@@ -32,11 +34,6 @@ jobs:
3234
- name: Checkout repository
3335
uses: actions/checkout@v3
3436

35-
- name: Build debug
36-
run: |
37-
swift --version
38-
swift build
39-
4037
- name: Build documentation
4138
run: |
4239
unidoc compile -I .. \
@@ -52,11 +49,16 @@ jobs:
5249
DEVELOPER_DIR: "/Applications/Xcode_15.3.app/Contents/Developer"
5350

5451
steps:
52+
- name: Install Unidoc
53+
uses: tayloraswift/swift-unidoc-action@master
54+
with:
55+
unidoc-version: "master"
56+
5557
- name: Checkout repository
5658
uses: actions/checkout@v3
5759

58-
- name: Build debug
60+
- name: Build documentation
5961
run: |
60-
swift --version
61-
swift build
62-
62+
unidoc compile -I .. \
63+
--ci fail-on-errors \
64+
--package-name swift-unidoc

.github/workflows/ci.yml renamed to .github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# This workflow builds the project for production, with IndexStoreDB integration enabled.
2-
3-
name: ci
2+
name: test
43

54
on:
65
push:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
<strong><em><code>unidoc</code></em></strong>
44

5-
[![ci build status](https://github.com/tayloraswift/swift-unidoc/actions/workflows/ci.yml/badge.svg)](https://github.com/tayloraswift/swift-unidoc/actions/workflows/ci.yml)
5+
[![ci build status](https://github.com/tayloraswift/swift-unidoc/actions/workflows/test.yml/badge.svg)](https://github.com/tayloraswift/swift-unidoc/actions/workflows/test.yml)
6+
[![ci build status](https://github.com/tayloraswift/swift-unidoc/actions/workflows/docs.yml/badge.svg)](https://github.com/tayloraswift/swift-unidoc/actions/workflows/docs.yml)
7+
[![ci build status](https://github.com/tayloraswift/swift-unidoc/actions/workflows/package.yml/badge.svg)](https://github.com/tayloraswift/swift-unidoc/actions/workflows/package.yml)
68

79
</div>
810

0 commit comments

Comments
 (0)