diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index ff6826d6f..0b7c456ad 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -39,7 +39,7 @@ jobs: - name: Upload tests logs artifacts uses: actions/upload-artifact@v4 with: - name: tests-logs + name: linux-tests-logs path: /tmp/kDrive-logdir/* retention-days: 3 overwrite: true diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index a885c3113..045aefd8c 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -20,6 +20,12 @@ jobs: with: submodules: recursive + - name: Get the path to kDrive-logdir + run : echo "logdir_path="$(find /private/var/folders/ -name kDrive-logdir 2>/dev/null)/kDrive-logdir"" >> $GITHUB_ENV + + - name: Clean the log directory + run : rm -rf ${{ env.logdir_path }}/* + - name: Unlock keychain to use the certificate run : security unlock-keychain -p '${{ secrets.KEYCHAIN_PASSWORD }}' login.keychain @@ -28,12 +34,6 @@ jobs: - name: Build kDrive desktop run : ./infomaniak-build-tools/macos/build-ci.sh - - name: Get the path to kDrive-logdir - run : echo "logdir_path="$(find /private/var/folders/ -name kDrive-logdir 2>/dev/null)/kDrive-logdir"" >> $GITHUB_ENV - - - name: Clean the log directory - run : rm -rf ${{ env.logdir_path }}/* - - name: Execute common tests run : ./kDrive_test_common working-directory: ${{env.bin-directory}} @@ -45,7 +45,7 @@ jobs: - name: Upload tests logs artifacts uses: actions/upload-artifact@v4 with: - name: tests-logs + name: macos-tests-logs path: ${{ env.logdir_path }}/* retention-days: 3 overwrite: true diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 5e4263770..f1b95bcf8 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -20,6 +20,9 @@ jobs: with: submodules: recursive + - name: Clean the log directory + run : rm -r -force C:/Windows/Temp/kDrive-logdir/* + - name: Restore extension packages run : nuget restore extensions/windows/cfapi/kDriveExt.sln @@ -48,5 +51,13 @@ jobs: run: ./kDrive_test_parms.exe working-directory: ${{env.bin-directory}} + - name: Upload tests logs artifacts + uses: actions/upload-artifact@v4 + with: + name: windows-tests-logs + path: C:/Windows/Temp/kDrive-logdir/* + retention-days: 3 + overwrite: true + - name: Clean-up generated code run : powershell ./infomaniak-build-tools/windows/build-drive.ps1 -clean all