Skip to content

Commit ef40853

Browse files
committed
CI: Create /mnt/target before trying to restore caches
1 parent 44a7016 commit ef40853

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ jobs:
158158
with:
159159
persist-credentials: false
160160

161+
# Create a working directory on /mnt, which is a larger temporary
162+
# filesystem than /, that we can then point our later commands to.
163+
- run: |
164+
sudo mkdir ${CARGO_TARGET_DIR}
165+
sudo chown $(id -u):$(id -g) ${CARGO_TARGET_DIR}
166+
161167
- uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
162168
with:
163169
# Ensure that we cache from the right target directory. (See below
@@ -169,12 +175,6 @@ jobs:
169175
- run: sudo systemctl start postgresql.service
170176
- run: sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'postgres'"
171177

172-
# Create a working directory on /mnt, which is a larger temporary
173-
# filesystem than /, that we can then point our later commands to.
174-
- run: |
175-
sudo mkdir ${CARGO_TARGET_DIR}
176-
sudo chown $(id -u):$(id -g) ${CARGO_TARGET_DIR}
177-
178178
- run: cargo build --tests --workspace
179179
- run: cargo test --workspace
180180

0 commit comments

Comments
 (0)