Skip to content

Commit

Permalink
split gcc 4.8.5 to another single workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
levalup committed Jul 1, 2024
1 parent 50d0cac commit 6cdf789
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 3 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/build-classic.yml
Original file line number Diff line number Diff line change
@@ -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 }}
5 changes: 2 additions & 3 deletions .github/workflows/build-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand All @@ -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
Expand Down

0 comments on commit 6cdf789

Please sign in to comment.