Skip to content

Commit

Permalink
Windows logs cleanup and upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximePouce committed May 2, 2024
1 parent 220d97a commit 6b8389d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}}
Expand All @@ -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
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 6b8389d

Please sign in to comment.