Skip to content

Switch to Qt 6.8

Switch to Qt 6.8 #1169

name: 'Check: Unit Tests (utest)'
on:
pull_request:
workflow_dispatch:
jobs:
run_tests:
runs-on: ubuntu-20.04
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Clone repository
uses: actions/checkout@v4
- name: "Configure workflow"
run: |
bash ./buildscripts/ci/tools/make_build_number.sh
BUILD_NUMBER=$(cat ./build.artifacts/env/build_number.env)
echo "BUILD_NUMBER=$BUILD_NUMBER" | tee -a $GITHUB_ENV
echo "CCACHE_TIMESTAMP=$(date -u +"%F-%T")" | tee -a $GITHUB_ENV
- name: Restore ccache files
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/.ccache
key: ${{github.workflow}}-ccache-${{ env.CCACHE_TIMESTAMP }}
restore-keys: ${{github.workflow}}-ccache-
- name: Setup ccache
run: |
sudo apt-get update && sudo apt-get install -y ccache
bash ./buildscripts/ci/tools/setup_ccache_config.sh
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
aqtversion: '==3.1.*'
version: '6.8.0'
host: 'linux'
target: 'desktop'
arch: 'linux_gcc_64'
modules: 'qt5compat qtnetworkauth qtscxml qtshadertools qtwebsockets'
- name: Setup environment
run: |
bash ./buildscripts/ci/linux/setup.sh
- name: Build
run: |
mkdir -p build.artifacts/env
bash ./buildscripts/ci/linux/build_utest.sh -n ${{ env.BUILD_NUMBER }}
echo "============== ccache ==============="
ccache -s
- name: Free up disk space
# After building, too little disk space is left. Remove unnecessary tools to free up disk space.
run: |
sudo docker system prune -a -f
sudo rm -rf /usr/local/lib/android
- name: Run tests
run: |
bash ./buildscripts/ci/linux/runutests.sh
env:
ASAN_OPTIONS: "detect_leaks=0"