Skip to content

Kdesktop 838 implement server request for logUploader #426

Kdesktop 838 implement server request for logUploader

Kdesktop 838 implement server request for logUploader #426

Workflow file for this run

name: MacOS kDrive desktop CI
on:
pull_request:
types: [synchronize, review_requested]
concurrency:
group: macos-${{ github.head_ref }}
cancel-in-progress: true
jobs:
build-kDrive:
runs-on: [ self-hosted, macOS, desktop-kdrive ]
env:
bin-directory: ./build-macos/install
steps:
- name: Checkout the code
uses: actions/checkout@v4.1.1
with:
submodules: recursive
- name: Get the path to kDrive-logdir
run : echo "logdir_path="$(find /private/var/folders/ -name kDrive-logdir 2>/dev/null)"" >> $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
- name: Grant building script execute permission
run : chmod +x ./infomaniak-build-tools/macos/build-ci.sh
- name: Build kDrive desktop
run : ./infomaniak-build-tools/macos/build-ci.sh
- name: Execute common tests
run : ./kDrive_test_common
working-directory: ${{env.bin-directory}}
- name: Execute parms tests
run : ./kDrive_test_parms
working-directory: ${{env.bin-directory}}
- name: Upload tests logs artifacts
uses: actions/upload-artifact@v4
with:
name: macos-tests-logs
path: ${{ env.logdir_path }}/*
retention-days: 3
overwrite: true
if: always()
- name: Clean-up generated code
run : rm -rf build-macos