From 574eb7b327a7c765c3cfca5d74b59f811140546b Mon Sep 17 00:00:00 2001 From: MischaPanch Date: Sun, 3 Aug 2025 13:35:33 +0200 Subject: [PATCH] GH: make sure cached dirs exist --- .github/workflows/pytest.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 31f4b372..3eeac6be 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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 }}-