Skip to content

Commit e729338

Browse files
committed
ci(cubestore): Setup TMPDIR explicitly
1 parent 70a9dff commit e729338

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/rust-cubestore.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
env:
3333
RUST: ${{ matrix.rust }}
3434
steps:
35+
- name: Prepare directories
36+
# See TMPDIR comment below
37+
run: mkdir /__w/tmp
3538
- name: Checkout
3639
uses: actions/checkout@v4
3740
- name: Install Rust
@@ -57,6 +60,11 @@ jobs:
5760
run: |
5861
cargo build --manifest-path rust/cubestore/Cargo.toml
5962
- name: Run cargo test
63+
env:
64+
# LocalDirRemoteFs expect that std::env::temp_dir and its local dir is on same FS, to use `rename`
65+
# On Unix it's controlled by TMPDIR
66+
# When using `container` in GHA checkout will be located in `/__w`, and that's a separate mount from `/tmp`
67+
TMPDIR: /__w/tmp
6068
run: |
6169
cargo test --manifest-path rust/cubestore/Cargo.toml
6270

0 commit comments

Comments
 (0)