Skip to content

Commit 3de030a

Browse files
committed
Try another workaround to build docs
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
1 parent 0424120 commit 3de030a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ jobs:
3131
version: 0.14.1
3232

3333
# I don't know why this is needed for the docs to succeed on CI, but otherwise it consistently fails with:
34-
# error: unable to open directory '.zig-cache/b/': FileNotFound
34+
# error: unable to open directory '...': FileNotFound
3535
# See https://github.com/mxpv/luaz/actions/runs/16698403816/job/47265761593
36-
- run: zig build
37-
38-
- run: zig build docs
36+
- run: |
37+
mkdir -p ./.zig-global-cache
38+
zig build docs
39+
env:
40+
ZIG_GLOBAL_CACHE_DIR: ./.zig-global-cache
3941
4042
- uses: actions/configure-pages@v5
4143
- uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)