diff --git a/.github/workflows/cmake-tier1.yml b/.github/workflows/cmake-tier1.yml index 9c08434..0d4e68a 100644 --- a/.github/workflows/cmake-tier1.yml +++ b/.github/workflows/cmake-tier1.yml @@ -17,8 +17,17 @@ env: jobs: - linux-ubuntu-24_04: - runs-on: ubuntu-latest + linux-ubuntu: + name: linux-ubuntu-${{ matrix.os }} (gcc-${{ matrix.gcc }}) + runs-on: ubuntu-${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: [ + { os: "22.04", gcc: 11 }, + { os: "24.04", gcc: 14 }, + { os: "26.04", gcc: 15 }, + ] steps: - uses: actions/checkout@v7 @@ -36,8 +45,8 @@ jobs: shell: bash working-directory: ${{github.workspace}}/build env: - CC: gcc-14 - CXX: g++-14 + CC: gcc-${{ matrix.gcc }} + CXX: g++-${{ matrix.gcc }} run: > cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE @@ -61,59 +70,10 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v7 with: - name: Linux Packages + name: Linux Packages (Ubuntu ${{ matrix.os }}) path: ${{github.workspace}}/build/gsmartcontrol-*-Linux*.* - linux-ubuntu-22_04: - # GCC 11 - runs-on: ubuntu-22.04 - - steps: - - uses: actions/checkout@v7 - - - name: Update Package Database - run: sudo apt-get update - - - name: Install Dependencies - run: sudo apt-get install libgtkmm-3.0-dev gettext - - - name: Create Build Directory - run: cmake -E make_directory build - - - name: Configure CMake - shell: bash - working-directory: ${{github.workspace}}/build - env: - CC: gcc-11 - CXX: g++-11 - run: > - cmake $GITHUB_WORKSPACE - -DCMAKE_BUILD_TYPE=$BUILD_TYPE - -DCMAKE_TOOLCHAIN_FILE="$GITHUB_WORKSPACE/toolchains/linux-dev.cmake" - - - name: Build - shell: bash - working-directory: ${{github.workspace}}/build - run: cmake --build . --config $BUILD_TYPE - - - name: Test - working-directory: ${{github.workspace}}/build - shell: bash - run: ctest -C $BUILD_TYPE --rerun-failed --output-on-failure - - - name: Pack (cmake install and make binary package) - shell: bash - working-directory: ${{github.workspace}}/build - run: cpack -G TBZ2 - -# - name: Upload artifacts -# uses: actions/upload-artifact@v7 -# with: -# name: Linux Packages -# path: ${{github.workspace}}/build/gsmartcontrol-*-Linux*.* - - windows-msys2: uses: ./.github/workflows/windows-msys2.yml with: