Skip to content

Commit

Permalink
Attempt to update the CI actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
hriener committed May 18, 2024
1 parent 811d7fa commit 01596a4
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 54 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:
- master

jobs:
build-gcc7-coveralls:
build-gcc9-coveralls:
runs-on: ubuntu-latest
name: GNU GCC 7 and run coveralls
name: GNU GCC 9 and run coveralls

steps:
- uses: actions/checkout@v1
Expand All @@ -21,7 +21,7 @@ jobs:
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=g++-7 -DEASY_TEST=ON -DENABLE_COVERAGE=ON ..
cmake -DCMAKE_CXX_COMPILER=g++-9 -DEASY_TEST=ON -DENABLE_COVERAGE=ON ..
make run_tests
- name: Run tests
run: |
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,91 +9,91 @@ on:
- master

jobs:
build-gcc7:
build-gcc9:
runs-on: ubuntu-latest
name: GNU GCC 7
name: GNU GCC 9

steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Build easy
- name: Build mockturtle
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=g++-7 -DEASY_TEST=ON ..
cmake -DCMAKE_CXX_COMPILER=g++-9 -DEASY_TEST=ON ..
make run_tests
- name: Run tests
run: |
cd build
./test/run_tests "~[quality]"
build-gcc8:
build-gcc10:
runs-on: ubuntu-latest
name: GNU GCC 8
name: GNU GCC 10

steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Build easy
- name: Build mockturtle
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=g++-8 -DEASY_TEST=ON ..
cmake -DCMAKE_CXX_COMPILER=g++-10 -DEASY_TEST=ON ..
make run_tests
- name: Run tests
run: |
cd build
./test/run_tests "~[quality]"
build-gcc9:
build-gcc12:
runs-on: ubuntu-latest
name: GNU GCC 9
name: GNU GCC 12

steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Build easy
- name: Build mockturtle
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=g++-9 -DEASY_TEST=ON ..
cmake -DCMAKE_CXX_COMPILER=g++-12 -DEASY_TEST=ON ..
make run_tests
- name: Run tests
run: |
cd build
./test/run_tests "~[quality]"
build-clang8:
runs-on: ubuntu-latest
name: Clang 8
build-clang11:
runs-on: ubuntu-20.04
name: Clang 11

steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Build easy
- name: Build mockturtle
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=clang++-8 -DEASY_TEST=ON ..
cmake -DCMAKE_CXX_COMPILER=clang++-11 -DEASY_TEST=ON ..
make run_tests
- name: Run tests
run: |
cd build
./test/run_tests "~[quality]"
build-clang9:
build-clang13:
runs-on: ubuntu-latest
name: Clang 9
name: Clang 13

steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Build easy
- name: Build mockturtle
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=clang++-9 -DEASY_TEST=ON ..
cmake -DCMAKE_CXX_COMPILER=clang++-13 -DEASY_TEST=ON ..
make run_tests
- name: Run tests
run: |
Expand Down
54 changes: 45 additions & 9 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,26 @@ on:
- master

jobs:
build-gcc8:
name: GNU GCC 8
build-gcc10:
name: GNU GCC 10
runs-on: macOS-11

steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Build
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=$(which g++-10) -DEASY_TEST=ON ..
make run_tests
- name: Run tests
run: |
cd build
./test/run_tests "~[quality]"
build-gcc11:
name: GNU GCC 11
runs-on: macOS-latest

steps:
Expand All @@ -21,14 +39,14 @@ jobs:
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=/usr/local/opt/gcc@8/bin/g++-8 -DEASY_TEST=ON ..
cmake -DCMAKE_CXX_COMPILER=$(which g++-11) -DEASY_TEST=ON ..
make run_tests
- name: Run tests
run: |
cd build
./test/run_tests "~[quality]"
build-gcc9:
name: GNU GCC 9
build-gcc12:
name: GNU GCC 12
runs-on: macOS-latest

steps:
Expand All @@ -39,14 +57,14 @@ jobs:
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=/usr/local/opt/gcc/bin/g++-9 -DEASY_TEST=ON ..
cmake -DCMAKE_CXX_COMPILER=$(which g++-12) -DEASY_TEST=ON ..
make run_tests
- name: Run tests
run: |
cd build
./test/run_tests "~[quality]"
build-clang9:
name: Clang 9
build-clang14:
name: Clang 14
runs-on: macOS-latest

steps:
Expand All @@ -57,9 +75,27 @@ jobs:
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ -DEASY_TEST=ON ..
cmake -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DEASY_TEST=ON ..
make run_tests
- name: Run tests
run: |
cd build
./test/run_tests "~[quality]"
build-clang15:
name: Clang 15
runs-on: macOS-latest

steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Build easy
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=$(brew --prefix llvm@15)/bin/clang++ -DEASY_TEST=ON ..
make run_tests
- name: Run tests
run: |
cd build
./test/run_tests "~[quality]"
49 changes: 28 additions & 21 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,38 @@ name: Windows CI
on:
push:
branches:
- master
- master
pull_request:
branches:
- master
- master

jobs:
build:
runs-on: windows-latest
name: Visual Studio
strategy:
matrix:
os: [ windows-2019 ]
toolset: [ v142, ClangCL ]
include:
- os: windows-2019
env: "Visual Studio 16 2019"

name: ${{matrix.os}} with ${{matrix.env}} and ${{matrix.toolset}} toolset
runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Create build directory
run: mkdir build
- name: Run CMake
run: cmake -G "Visual Studio 16 2019" -DEASY_TEST=ON ..
working-directory: ./build
- name: Build easy
run: |
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" easy.sln /t:run_tests
working-directory: ./build
shell: cmd
- name: Run tests
run: |
cd build
.\test\Debug\run_tests "~[quality]"
- uses: actions/checkout@v1
with:
submodules: true
- name: Create build directory
run: cmake -E make_directory ${{github.workspace}}\build
- name: Run CMake
run: cmake ${{github.workspace}} -G "${{matrix.env}}" -A x64 -T ${{matrix.toolset}} -DEASY_TEST=ON
working-directory: ${{github.workspace}}\build
- name: Build
run: cmake --build . -j2
working-directory: ${{github.workspace}}\build
shell: cmd
- name: Run tests
run: |
cd build
.\test\Debug\run_tests "~[quality]"

0 comments on commit 01596a4

Please sign in to comment.