Kdesktop 830 implement functions to generate the support log archive #376
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows kDrive desktop CI | |
on: | |
pull_request: | |
types: [synchronize, review_requested] | |
concurrency: | |
group: windows-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
build-kDrive: | |
runs-on: [ self-hosted, Windows, desktop-kdrive ] | |
env: | |
bin-directory: ./build-windows/install/bin/ | |
steps: | |
- name: Checkout the PR | |
uses: actions/checkout@v4.1.1 | |
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 | |
- name: Import Windows virtual certificate | |
env: | |
WINDOWS_VIRTUAL_CERT: ${{ secrets.WINDOWS_VIRTUAL_CERT }} | |
WINDOWS_VIRTUAL_CERT_PASSWORD: ${{ secrets.WINDOWS_VIRTUAL_CERT_PASSWORD }} | |
run: | | |
New-Item -ItemType directory -Path certificate | |
Set-Content -Path certificate/tempCert.txt -Value $env:WINDOWS_VIRTUAL_CERT | |
certutil -decode certificate/tempCert.txt certificate/certificate.pfx | |
Remove-Item -path certificate -include tempCert.txt | |
Import-PfxCertificate -FilePath certificate/certificate.pfx -CertStoreLocation Cert:\CurrentUser\My -Password (ConvertTo-SecureString -String $env:WINDOWS_VIRTUAL_CERT_PASSWORD -Force -AsPlainText) | |
- name: Build kDrive desktop | |
run: | | |
call "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvars64.bat" | |
powershell ./infomaniak-build-tools/windows/build-drive.ps1 -ci | |
shell: cmd | |
- name: Execute common tests | |
run: ./kDrive_test_common.exe | |
working-directory: ${{env.bin-directory}} | |
- name: Execute parms tests | |
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 | |
if: always() | |
- name: Clean-up generated code | |
run : powershell ./infomaniak-build-tools/windows/build-drive.ps1 -clean all |