rename parameter + cleanup

This commit is contained in:
tooomm 2026-06-30 14:21:59 +02:00 committed by GitHub
parent d7220bb9ad
commit 18b2b2c761
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,7 +97,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
# The files in ".ci/$distro$version" correspond to the values given here # The files in ".ci/$distro$distro_version" correspond to the values given here
include: include:
- distro: Arch - distro: Arch
@ -105,55 +105,55 @@ jobs:
test: true # run debug build and tests test: true # run debug build and tests
- distro: Servatrice_Debian - distro: Servatrice_Debian
version: 12 distro_version: 12
package: DEB package: DEB
server_only: true server_only: true
- distro: Debian - distro: Debian
version: 12 distro_version: 12
package: DEB package: DEB
- distro: Debian - distro: Debian
version: 13 distro_version: 13
package: DEB package: DEB
test: true # run debug build and tests on newest distro version test: true # run debug build and tests on newest distro version
- distro: Fedora - distro: Fedora
version: 43 distro_version: 43
package: RPM package: RPM
- distro: Fedora - distro: Fedora
version: 44 distro_version: 44
package: RPM package: RPM
test: true # run debug build and tests on newest distro version test: true # run debug build and tests on newest distro version
- distro: Ubuntu - distro: Ubuntu
version: 24.04 distro_version: 24.04
package: DEB package: DEB
- distro: Ubuntu - distro: Ubuntu
version: 26.04 distro_version: 26.04
package: DEB package: DEB
test: true # run debug build and tests on newest distro version test: true # run debug build and tests on newest distro version
name: ${{ matrix.distro }} ${{ matrix.version }} name: ${{ matrix.distro }} ${{ matrix.distro_version }}
needs: configure needs: configure
runs-on: ubuntu-latest runs-on: ubuntu-latest
continue-on-error: ${{ matrix.allow-failure == true }} continue-on-error: ${{ matrix.allow-failure == true }}
timeout-minutes: 70 timeout-minutes: 70
env: env:
CACHE_DIR: ${{ github.workspace }}/.cache/${{ matrix.distro }}${{ matrix.version }} # directory for caching docker image and ccache CACHE_DIR: ${{ github.workspace }}/.cache/${{ matrix.distro }}${{ matrix.distro_version }} # directory for caching docker image and ccache
CCACHE_EVICTION_AGE: 7d CCACHE_EVICTION_AGE: 7d
CCACHE_SIZE: 550M # space of all repo is 10Gi: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy CCACHE_SIZE: 550M # space of all repo is 10Gi: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
CMAKE_GENERATOR: 'Ninja' CMAKE_GENERATOR: 'Ninja'
NAME: ${{ matrix.distro }}${{ matrix.version }} NAME: ${{ matrix.distro }}${{ matrix.distro_version }}
steps: steps:
- name: "Checkout" - name: "Checkout"
@ -165,11 +165,11 @@ jobs:
env: env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
with: with:
key: ccache-${{ matrix.distro }}${{ matrix.version }}-${{ env.BRANCH_NAME }} key: ccache-${{ matrix.distro }}${{ matrix.distro_version }}-${{ env.BRANCH_NAME }}
path: ${{ env.CACHE_DIR }} path: ${{ env.CACHE_DIR }}
restore-keys: ccache-${{ matrix.distro }}${{ matrix.version }}- restore-keys: ccache-${{ matrix.distro }}${{ matrix.distro_version }}-
- name: "Build ${{ matrix.distro }} ${{ matrix.version }} Docker image" - name: "Build ${{ matrix.distro }} ${{ matrix.distro_version }} Docker image"
shell: bash shell: bash
run: source .ci/docker.sh --build run: source .ci/docker.sh --build
@ -188,7 +188,7 @@ jobs:
env: env:
PACKAGE: '${{ matrix.package }}' PACKAGE: '${{ matrix.package }}'
SERVER_ONLY: '${{ matrix.server_only }}' SERVER_ONLY: '${{ matrix.server_only }}'
SUFFIX: '-${{ matrix.distro }}${{ matrix.version }}' SUFFIX: '-${{ matrix.distro }}${{ matrix.distro_version }}'
run: | run: |
source .ci/docker.sh source .ci/docker.sh
args=() args=()
@ -261,7 +261,7 @@ jobs:
matrix: matrix:
include: include:
- os: macOS - os: macOS
target: 13 os_target_version: 13
runner: macos-15-intel runner: macos-15-intel
cmake_generator: Ninja cmake_generator: Ninja
@ -277,7 +277,7 @@ jobs:
xcode: "16.4" xcode: "16.4"
- os: macOS - os: macOS
target: 14 os_target_version: 14
runner: macos-14 runner: macos-14
cmake_generator: Ninja cmake_generator: Ninja
@ -292,7 +292,7 @@ jobs:
xcode: "15.4" xcode: "15.4"
- os: macOS - os: macOS
target: 15 os_target_version: 15
runner: macos-15 runner: macos-15
cmake_generator: Ninja cmake_generator: Ninja
@ -307,7 +307,7 @@ jobs:
xcode: "16.4" xcode: "16.4"
- os: macOS - os: macOS
target: 15 os_target_version: 15
runner: macos-15 runner: macos-15
cmake_generator: Ninja cmake_generator: Ninja
@ -320,7 +320,7 @@ jobs:
xcode: "16.4" xcode: "16.4"
- os: Windows - os: Windows
target: 10 os_target_version: 10
runner: windows-2025 runner: windows-2025
cmake_generator: "Visual Studio 18 2026" cmake_generator: "Visual Studio 18 2026"
@ -332,7 +332,7 @@ jobs:
qt_modules: qtimageformats qtmultimedia qtwebsockets qt_modules: qtimageformats qtmultimedia qtwebsockets
type: Release type: Release
name: ${{ matrix.os }} ${{ matrix.target }}${{ case(matrix.soc == 'Intel', ' Intel', '') }}${{ case(matrix.type == 'Debug', ' Debug', '') }} name: ${{ matrix.os }} ${{ matrix.os_target_version }}${{ case(matrix.soc == 'Intel', ' Intel', '') }}${{ case(matrix.type == 'Debug', ' Debug', '') }}
needs: configure needs: configure
runs-on: ${{ matrix.runner }} runs-on: ${{ matrix.runner }}
timeout-minutes: 100 timeout-minutes: 100
@ -439,7 +439,6 @@ jobs:
shell: bash shell: bash
env: env:
BUILDTYPE: '${{ matrix.type }}' BUILDTYPE: '${{ matrix.type }}'
CCACHE_EVICTION_AGE: ${{ matrix.ccache_eviction_age }}
CMAKE_GENERATOR: ${{ matrix.cmake_generator }} CMAKE_GENERATOR: ${{ matrix.cmake_generator }}
CMAKE_GENERATOR_PLATFORM: ${{ matrix.cmake_generator_platform }} CMAKE_GENERATOR_PLATFORM: ${{ matrix.cmake_generator_platform }}
DEVELOPER_DIR: '/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer' DEVELOPER_DIR: '/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer'