Skip to content

Commit e9871ac

Browse files
committed
Add generating documentation to the CI
1 parent e6790f4 commit e9871ac

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,37 @@ jobs:
133133
run: sbt ";sjsJUnitTests/test ;sjsCompilerTests/test"
134134
shell: cmd
135135

136+
build_docs:
137+
runs-on: [self-hosted, Linux]
138+
container: lampepfl/dotty:2020-04-24
139+
140+
# timeout-minutes: 20 We need much more for first run
141+
142+
steps:
143+
- name: Set JDK 11 as default
144+
run: echo "/usr/lib/jvm/java-11-openjdk-amd64/bin" >> $GITHUB_PATH
145+
146+
- uses: actions/checkout@v2
147+
- run: git fetch --prune --unshallow --tags
148+
149+
- name: Cache Coursier
150+
uses: actions/cache@v1
151+
with:
152+
path: ~/.cache/coursier
153+
key: sbt-coursier-cache
154+
155+
- name: Cache SBT
156+
uses: actions/cache@v1
157+
with:
158+
path: ~/.sbt
159+
key: sbt-${{ hashFiles('**/build.sbt') }}
160+
161+
- name: Generate documentation for the doctool
162+
run: ./project/scripts/sbt "scala3doc/generateSelfDocumentation"
163+
164+
- name: Generate documentation for the example documented project
165+
run: ./project/scripts/sbt "scala3doc-example-project/doc"
166+
136167
community_build:
137168
runs-on: [self-hosted, Linux]
138169
container: lampepfl/dotty:2020-04-24

0 commit comments

Comments
 (0)