diff --git a/.github/workflows/build-classic.yml b/.github/workflows/build-classic.yml new file mode 100644 index 0000000..c263d1f --- /dev/null +++ b/.github/workflows/build-classic.yml @@ -0,0 +1,65 @@ +name: Build Classic GCC 4.8.5 + +on: + push: + branches: + - master + - develop + + pull_request: + branches: + - master + - develop + +jobs: + build-classic: + if: >- + ! contains(toJSON(github.event.commits.*.message), '[skip ci]') && + ! contains(toJSON(github.event.commits.*.message), '[skip github]') + + runs-on: ${{matrix.os}} + + strategy: + fail-fast: false + + matrix: + os: [ 'centos-7' ] + gcc_version: [ '4.8.5' ] + build_type: [ Release ] + + name: "On ${{matrix.os}} gcc-${{matrix.gcc_version}} ${{matrix.build_type}}" + + steps: + - uses: actions/checkout@v1 + with: + submodules: recursive + + - uses: friendlyanon/fetch-core-count@v1 + id: cores + + - name: Set output + id: strings + shell: bash + run: | + echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" + + - name: CMake & GCC + run: | + cmake --version + gcc --version + g++ --version + + - name: Configure + run: >- + cmake -B "${{ steps.strings.outputs.build-output-dir }}" + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + -S "${{ github.workspace }}" + + - name: Build + run: >- + cmake --build "${{ steps.strings.outputs.build-output-dir }}" + --config ${{ matrix.build_type }} + + - name: Test + working-directory: "${{ steps.strings.outputs.build-output-dir }}" + run: ctest --output-on-failure --build-config ${{ matrix.build_type }} diff --git a/.github/workflows/build-gcc.yml b/.github/workflows/build-gcc.yml index 6bea492..a252297 100644 --- a/.github/workflows/build-gcc.yml +++ b/.github/workflows/build-gcc.yml @@ -17,13 +17,13 @@ jobs: ! contains(toJSON(github.event.commits.*.message), '[skip ci]') && ! contains(toJSON(github.event.commits.*.message), '[skip github]') - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 strategy: fail-fast: false matrix: - gcc_version: ['latest', '12', '11', '10', '9', '8', '7', '6', '5', '4.8.5'] + gcc_version: ['latest', '12', '11', '10', '9', '8', '7', '6', '5'] build_type: [Release] name: "In Container GCC ${{matrix.gcc_version}} ${{matrix.build_type}}" @@ -39,7 +39,6 @@ jobs: - uses: friendlyanon/fetch-core-count@v1 id: cores - if: matrix.gcc_version != '4.8.5' - name: Set output id: strings