From 11bee79b90cf183be4e4d843b1993c6de1ac1b1e Mon Sep 17 00:00:00 2001 From: Aregtech Date: Wed, 16 Oct 2024 00:46:38 +0200 Subject: [PATCH] remove workspace --- .github/workflows/cmake.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index cd03a05..6498712 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -87,10 +87,6 @@ jobs: export NO_PAM=1 NO_UNWIND=1 NO_WOLFSSL=1 export SHELL=/bin/dash - - name: Config Git add safe directory - if: matrix.config.family == 'cygwin' - run: git config --global --add safe.directory ${GITHUB_WORKSPACE} - - name: Set cmake cache destination for Linux if: matrix.config.os == 'ubuntu-latest' run: echo "CACHE_DEST=./product/cache/${{matrix.config.name}}" >> "$GITHUB_ENV" @@ -115,3 +111,8 @@ jobs: working-directory: ${{github.workspace}} # Build your program with the given configuration run: cmake --build ${{env.CACHE_DEST}} -j 20 + + - name: Config Git add safe directory + if: matrix.config.family == 'cygwin' + shell: bash + run: rm -r -f ${GITHUB_WORKSPACE}/*