Skip to content

Commit

Permalink
Fix CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ikalnytskyi committed Aug 6, 2024
1 parent 3477937 commit 386a993
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 24 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: |
mkdir -p $GITHUB_WORKSPACE/tmp/termcolor && cd "$_"
cmake $GITHUB_WORKSPACE
Expand All @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: sudo pip install cmake
- run: |
mkdir -p $GITHUB_WORKSPACE/tmp/example && cd "$_"
Expand All @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: |
mkdir -p $GITHUB_WORKSPACE/tmp/example && cd "$_"
cmake $GITHUB_WORKSPACE/examples/cmake-submodule
Expand All @@ -47,7 +47,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: |
mkdir -p $GITHUB_WORKSPACE/tmp/example && cd "$_"
cmake $GITHUB_WORKSPACE/examples/cmake-external
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@ on:
pull_request:
branches: [master]

jobs:
jobs:
MacOS:
runs-on: macos-latest
strategy:
matrix:
compiler:
- Xcode_10.3
- Xcode_11.7
- Xcode_12.4
- Xcode_15.4.app
- Xcode_15.3.app
- Xcode_15.2.app
- Xcode_15.1.app
- Xcode_14.3.1.app

env:
CXXFLAGS: -std=c++11

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: sudo xcode-select -s /Applications/${{ matrix.compiler }}.app/Contents/Developer
- run: cmake -DTERMCOLOR_TESTS=ON .
- run: cmake --build .
Expand Down
46 changes: 33 additions & 13 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,44 @@ on:

jobs:
Ubuntu-Clang:
runs-on: ubuntu-latest
strategy:
matrix:
clang-compiler:
- "6.0"
- "7"
- "8"
- "9"
- "10"
- "11"
include:
- clang-compiler: "6.0"
ubuntu-release: ubuntu-20.04
- clang-compiler: "7"
ubuntu-release: ubuntu-20.04
- clang-compiler: "8"
ubuntu-release: ubuntu-20.04
- clang-compiler: "9"
ubuntu-release: ubuntu-20.04
- clang-compiler: "10"
ubuntu-release: ubuntu-20.04
- clang-compiler: "11"
ubuntu-release: ubuntu-22.04
- clang-compiler: "12"
ubuntu-release: ubuntu-22.04
- clang-compiler: "13"
ubuntu-release: ubuntu-22.04
- clang-compiler: "14"
ubuntu-release: ubuntu-22.04
- clang-compiler: "15"
ubuntu-release: ubuntu-22.04
- clang-compiler: "16"
ubuntu-release: ubuntu-24.04
- clang-compiler: "17"
ubuntu-release: ubuntu-24.04
- clang-compiler: "18"
ubuntu-release: ubuntu-24.04

env:
CXX: clang++-${{ matrix.clang-compiler }}
CXXFLAGS: -std=c++11

runs-on: ${{ matrix.ubuntu-release }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: sudo apt update
- run: sudo apt -y install clang-${{ matrix.clang-compiler }}
- run: cmake -DTERMCOLOR_TESTS=ON .
Expand All @@ -36,17 +57,16 @@ jobs:
strategy:
matrix:
gcc-compiler:
- "7"
- "8"
- "9"
- "10"
- "11"
- "12"

env:
CXX: g++-${{ matrix.gcc-compiler }}
CXXFLAGS: -std=c++11

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: sudo apt update
- run: sudo apt -y install g++-${{ matrix.gcc-compiler }}
- run: cmake -DTERMCOLOR_TESTS=ON .
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: cmake -DTERMCOLOR_TESTS=ON .
- run: cmake --build .
- run: ./Debug/test_termcolor.exe
Expand All @@ -20,7 +20,7 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: cmake -DCMAKE_SH="CMAKE_SH-NOTFOUND" -DTERMCOLOR_TESTS=ON -G "MinGW Makefiles" .
- run: cmake --build .
- run: ./test_termcolor

0 comments on commit 386a993

Please sign in to comment.