Skip to content

Commit 574eb7b

Browse files
MischaPanchMichael Panchenko
authored andcommitted
GH: make sure cached dirs exist
1 parent cb8a928 commit 574eb7b

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/pytest.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ jobs:
2828
- uses: actions/setup-go@v5
2929
with:
3030
go-version: '>=1.17.0'
31+
- name: Ensure cached directory exist before calling cache-related actions
32+
shell: bash
33+
run: |
34+
mkdir -p $HOME/.serena/language_servers/static
35+
mkdir -p $HOME/.cache/go-build
36+
mkdir -p $HOME/go/bin
3137
# Add Go bin directory to PATH for this workflow
3238
# GITHUB_PATH is a special file that GitHub Actions uses to modify PATH
3339
# Writing to this file adds the directory to the PATH for subsequent steps
@@ -36,8 +42,8 @@ jobs:
3642
uses: actions/cache@v3
3743
with:
3844
path: |
39-
${{ env.HOME }}/go/bin
40-
${{ env.HOME }}/.cache/go-build
45+
~/go/bin
46+
~/.cache/go-build
4147
key: go-binaries-${{ runner.os }}-gopls-latest
4248
- name: Install gopls
4349
if: steps.cache-go-binaries.outputs.cache-hit != 'true'
@@ -49,7 +55,6 @@ jobs:
4955
with:
5056
elixir-version: '1.18.4'
5157
otp-version: '26.1'
52-
5358
- name: Prepare java
5459
uses: actions/setup-java@v3
5560
with:
@@ -77,7 +82,7 @@ jobs:
7782
id: cache-language-servers
7883
uses: actions/cache@v3
7984
with:
80-
path: ${{ env.HOME }}/.serena/language_servers/static
85+
path: ~/.serena/language_servers/static
8186
key: language-servers-${{ runner.os }}-v1
8287
restore-keys: |
8388
language-servers-${{ runner.os }}-

0 commit comments

Comments
 (0)