Skip to content

Commit ca0cb5e

Browse files
committed
[CI] Build documentation with --check-bounds=yes
This hopefully avoids recompiling packages when running the tests
1 parent f67b202 commit ca0cb5e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/Documentation.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ jobs:
4343
with:
4444
cache-name: Documentation
4545
- name: Instantiate docs environment
46-
shell: julia --color=yes --project=docs {0}
46+
# Use `--check-bounds=yes` so that when we run tests we don't need to
47+
# precompile again all the packages.
48+
shell: julia --color=yes --check-bounds=yes --project=docs {0}
4749
run: |
4850
using Pkg
4951
Pkg.instantiate()
5052
- name: Build documentation
5153
run:
52-
julia --color=yes --project=docs docs/make.jl
54+
julia --color=yes --project=docs --check-bounds=yes docs/make.jl
5355
env:
5456
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5557
- name: Save Julia depot cache on cancel or failure
@@ -94,15 +96,15 @@ jobs:
9496
name: documentation-build
9597
path: docs/build
9698
- name: Instantiate docs environment
97-
shell: julia --color=yes {0}
99+
shell: julia --color=yes --check-bounds=yes {0}
98100
run: |
99101
# We only need `Documenter` for publishing the docs, let's not
100102
# reinstall the world all over again.
101103
using Pkg
102104
Pkg.add(; name="Documenter", version="1")
103105
- name: Deploy documentation
104106
run:
105-
julia --color=yes docs/deploy.jl
107+
julia --color=yes --check-bounds=yes docs/deploy.jl
106108
env:
107109
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108110
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)