From 266d869a19f8ddc7a51f021379d0b93a84e5ee0d Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sat, 6 Apr 2024 04:01:08 +0200 Subject: [PATCH] CI: hack to shorten windows paths - win has a 32k char process arg limit - test classpath args for the junit JVM can go over this limit if the workspace path is too long and the process will fail to start - this moves the workspace close to the drive letter as workaround --- .github/workflows/main.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6ff6af193118..7ec014ee4071 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2417,8 +2417,20 @@ jobs: exclude: - os: ${{ (contains(github.event.pull_request.labels.*.name, 'PHP') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request') && 'nothing' || 'windows-latest' }} fail-fast: false + defaults: + run: + # hack: shorten paths to stay below 32k char process arg limit of windows + working-directory: ${{ contains(matrix.os, 'windows') && 'D:\\nb' || github.workspace }} + steps: + - name: shorten paths for windows + if: contains(matrix.os, 'windows') + run: | + mkdir nb && cd nb + echo "$(pwd)" > GITHUB_WORKSPACE + working-directory: "D:\\" + - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@v4 with: @@ -2444,6 +2456,7 @@ jobs: uses: actions/download-artifact@v4 with: name: build + path: $GITHUB_WORKSPACE - name: Extract run: tar --zstd -xf build.tar.zst @@ -2544,7 +2557,7 @@ jobs: uses: test-summary/action@v2 if: failure() with: - paths: "./*/*/build/test/*/results/TEST-*.xml" + paths: "$GITHUB_WORKSPACE/*/*/build/test/*/results/TEST-*.xml" lsp-test: