summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2022-08-20 15:34:31 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2023-02-15 00:30:55 +0000
commit0fb48c262b89a23524f68d64954cb6aee0efdf29 (patch)
tree84941a2eac7ed9794461b2ecae5d2e0d44c0f49c
parent0ac962d55b0aaee4ec1639e1b9c1447f0c0f4c96 (diff)
downloadqbs-0fb48c262b89a23524f68d64954cb6aee0efdf29.tar.gz
Build Qbs with Qt 6 by default
Change-Id: I78ca74c27ccea64331a0995a0e611b8c79411fcb Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--.github/actions/download-qt/action.yml2
-rw-r--r--.github/actions/download-qtc/action.yml2
-rw-r--r--.github/workflows/main.yml45
3 files changed, 22 insertions, 27 deletions
diff --git a/.github/actions/download-qt/action.yml b/.github/actions/download-qt/action.yml
index a89a33884..b6785654b 100644
--- a/.github/actions/download-qt/action.yml
+++ b/.github/actions/download-qt/action.yml
@@ -4,7 +4,7 @@ inputs:
version:
description: 'Qt version'
required: false
- default: '5.15.2'
+ default: '6.2.4'
target:
description: 'Qt target (desktop, ios, android)'
required: false
diff --git a/.github/actions/download-qtc/action.yml b/.github/actions/download-qtc/action.yml
index 292991b38..542a2cb28 100644
--- a/.github/actions/download-qtc/action.yml
+++ b/.github/actions/download-qtc/action.yml
@@ -4,7 +4,7 @@ inputs:
version:
description: 'Qt Creator version'
required: false
- default: '5.0.3'
+ default: '9.0.1'
runs:
using: "composite"
steps:
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index c2ba74cfa..a71186ef6 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -23,7 +23,7 @@ jobs:
products.qbs_archive.targetName:qbs-linux-${{ github.run_id }}
products.qbs_archive.includeTests:true',
script: './scripts/build-qbs-with-qbs.sh',
- cacheid: 'gcc',
+ cacheid: 'gcc-qt6',
}
env:
BUILD_OPTIONS: ${{ matrix.config.options }}
@@ -41,14 +41,14 @@ jobs:
path: ~/.ccache
key: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache-${{ steps.get-timestamp.outputs.timestamp }}
restore-keys: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache-
- - name: Pull the Focal Image
- run: docker-compose pull focal
+ - name: Pull the Docker Image
+ run: docker-compose pull focal-qt6
- name: Print ccache stats
- run: docker-compose run focal ccache -s
+ run: docker-compose run focal-qt6 ccache -s
- name: Build Qbs
- run: docker-compose run focal ${{ matrix.config.script }}
+ run: docker-compose run focal-qt6 ${{ matrix.config.script }}
- name: Print ccache stats
- run: docker-compose run focal ccache -s
+ run: docker-compose run focal-qt6 ccache -s
- name: Upload artifacts
uses: 'actions/upload-artifact@v2'
with:
@@ -66,7 +66,7 @@ jobs:
- {
name: 'Build on Linux (clang_tidy)',
script: './scripts/run-analyzer.sh',
- image: 'focal',
+ image: 'focal-qt6',
options: 'profile:qt-clang_64 modules.cpp.compilerWrapper:ccache',
cacheid: 'clang',
}
@@ -77,41 +77,39 @@ jobs:
cacheid: 'cmake',
}
- {
- name: 'Build on Linux (gcc, Qt 6.2)',
+ name: 'Build on Linux (gcc, ASAN)',
image: 'focal-qt6',
script: './scripts/build-qbs-with-qbs.sh',
options: 'modules.cpp.compilerWrapper:ccache
+ modules.qbsbuildconfig.enableAddressSanitizer:true
modules.qbs.debugInformation:true
modules.qbsbuildconfig.enableBundledQt:true',
- cacheid: 'gcc-qt6',
+ cacheid: 'gcc-asan',
}
- {
- name: 'Build on Linux (gcc, ASAN)',
- image: 'focal',
+ name: 'Build on Linux (gcc, UBSAN)',
+ image: 'focal-qt6',
script: './scripts/build-qbs-with-qbs.sh',
options: 'modules.cpp.compilerWrapper:ccache
- modules.qbsbuildconfig.enableAddressSanitizer:true
+ modules.qbsbuildconfig.enableUbSanitizer:true
modules.qbs.debugInformation:true
modules.qbsbuildconfig.enableBundledQt:true',
- cacheid: 'gcc-asan',
+ cacheid: 'gcc-ubsan',
}
- {
- name: 'Build on Linux (gcc, UBSAN)',
+ name: 'Build on Linux (gcc, Qt 5.15)',
image: 'focal',
script: './scripts/build-qbs-with-qbs.sh',
options: 'modules.cpp.compilerWrapper:ccache
- modules.qbsbuildconfig.enableUbSanitizer:true
modules.qbs.debugInformation:true
modules.qbsbuildconfig.enableBundledQt:true',
- cacheid: 'gcc-ubsan',
+ cacheid: 'gcc-qt5',
}
env:
BUILD_OPTIONS: ${{ matrix.config.options }}
QTEST_FUNCTION_TIMEOUT: 9000000
steps:
- uses: actions/checkout@v1
- with:
- submodules: true
- name: Create .ccache dir
run: mkdir -p ~/.ccache
- name: prepare timestamp
@@ -123,7 +121,7 @@ jobs:
path: ~/.ccache
key: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache-${{ steps.get-timestamp.outputs.timestamp }}
restore-keys: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache-
- - name: Pull the Focal Image
+ - name: Pull the Docker Image
run: docker-compose pull ${{ matrix.config.image }}
- name: Print ccache stats
run: docker-compose run ${{ matrix.config.image }} ccache -s
@@ -286,14 +284,13 @@ jobs:
- name: Install Qt
uses: ./.github/actions/download-qt
with:
- toolchain: win64_mingw81
+ toolchain: win64_mingw
- name: Install Qt Creator
uses: ./.github/actions/download-qtc
- name: Install MinGW
uses: ./.github/actions/download-mingw
- name: Setup Qbs
run: |
- qbs setup-toolchains --detect
qbs setup-toolchains --type mingw $(which g++).exe mingw-qt
qbs setup-qt $(which qmake).exe qt
qbs config profiles.qt.baseProfile mingw-qt
@@ -316,7 +313,7 @@ jobs:
test-linux:
name: ${{ matrix.config.name }}
runs-on: ubuntu-latest
- timeout-minutes: 60
+ timeout-minutes: 90
needs: build-linux
strategy:
fail-fast: false
@@ -441,7 +438,7 @@ jobs:
path: ./
- name: Unpack artifact
run: mkdir -p release/install-root/ && tar xzf qbs-linux-${{ github.run_id }}.tar.gz -C release/install-root/
- - name: Pull the Focal-Baremetal Image
+ - name: Pull the Docker Image
run: docker-compose pull focal-baremetal
- name: arm-none-eabi-gcc-9_2
run: QBS_AUTOTEST_PROFILE=arm-none-eabi-gcc-9_2 docker-compose run focal-baremetal scripts/test-baremetal.sh release/install-root/usr/local/bin
@@ -687,8 +684,6 @@ jobs:
}
steps:
- uses: actions/checkout@v1
- with:
- submodules: true
- name: Download artifact
uses: actions/download-artifact@v1
with: