Skip to content

Commit 5b43d96

Browse files
committed
ci: mkdir ./tmp during all jobs, and override for windows
1 parent 37978ac commit 5b43d96

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.gitlab-ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ workflow:
55
when: never
66
- when: always
77

8-
default:
9-
interruptible: true
10-
118
variables:
129
GIT_SUBMODULE_STRATEGY: recursive
1310
GH_PROJECT_PATH: "MatrixAI/${CI_PROJECT_NAME}"
@@ -22,6 +19,13 @@ variables:
2219
# Homebrew cache only used by macos runner
2320
HOMEBREW_CACHE: "${CI_PROJECT_DIR}/tmp/Homebrew"
2421

22+
default:
23+
interruptible: true
24+
before_script:
25+
# Replace this in windows runners that use powershell
26+
# with `mkdir -Force "$CI_PROJECT_DIR/tmp"`
27+
- mkdir -p "$CI_PROJECT_DIR/tmp"
28+
2529
# Cached directories shared between jobs & pipelines per-branch per-runner
2630
cache:
2731
key: $CI_COMMIT_REF_SLUG
@@ -156,6 +160,7 @@ build:windows:
156160
npm_config_devdir: "${CI_PROJECT_DIR}/tmp/node-gyp"
157161
npm_config_nodedir: "${CI_PROJECT_DIR}/tmp/node-gyp/$npm_config_target"
158162
before_script:
163+
- mkdir -Force "$CI_PROJECT_DIR/tmp"
159164
- choco install nodejs --version="$npm_config_target" -y
160165
- choco install python --version=3.9.12 -y
161166
- refreshenv

0 commit comments

Comments
 (0)