GH: make sure cached dirs exist

This commit is contained in:
MischaPanch authored and Michael Panchenko committed 2025-08-03 14:07:09 +02:00
1 parent cb8a928337
commit 574eb7b327
1 file changed
+9 -4
+9 -4
View File
@@ -28,6 +28,12 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: '>=1.17.0'
- name: Ensure cached directory exist before calling cache-related actions
shell: bash
run: |
mkdir -p $HOME/.serena/language_servers/static
mkdir -p $HOME/.cache/go-build
mkdir -p $HOME/go/bin
# Add Go bin directory to PATH for this workflow
# GITHUB_PATH is a special file that GitHub Actions uses to modify PATH
# Writing to this file adds the directory to the PATH for subsequent steps
@@ -36,8 +42,8 @@ jobs:
uses: actions/cache@v3
with:
path: |
${{ env.HOME }}/go/bin
${{ env.HOME }}/.cache/go-build
~/go/bin
~/.cache/go-build
key: go-binaries-${{ runner.os }}-gopls-latest
- name: Install gopls
if: steps.cache-go-binaries.outputs.cache-hit != 'true'
@@ -49,7 +55,6 @@ jobs:
with:
elixir-version: '1.18.4'
otp-version: '26.1'
- name: Prepare java
uses: actions/setup-java@v3
with:
@@ -77,7 +82,7 @@ jobs:
id: cache-language-servers
uses: actions/cache@v3
with:
path: ${{ env.HOME }}/.serena/language_servers/static
path: ~/.serena/language_servers/static
key: language-servers-${{ runner.os }}-v1
restore-keys: |
language-servers-${{ runner.os }}-