Skip to content

Commit be5df4e

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

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
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

src/compile.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub const Compiler = struct {
4242
dbg_level: u8 = 1,
4343

4444
/// Type information level for native code generation.
45-
///
45+
///
4646
/// Information includes testable types for function arguments, locals, upvalues and some temporaries.
4747
///
4848
/// - `0` - generate for native modules

0 commit comments

Comments
 (0)