Skip to content

Commit a246df2

Browse files
committed
Use cmake instead of make for Linux + clang CI jobs
So we can remove `make`.
1 parent a63d647 commit a246df2

File tree

3 files changed

+62
-72
lines changed

3 files changed

+62
-72
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,68 @@ jobs:
3535
env:
3636
TESTPL_JOBS: 2
3737

38+
check-ubuntu-20_04-cmake-clang-8:
39+
runs-on: ubuntu-20.04
40+
steps:
41+
- uses: actions/checkout@v2
42+
with:
43+
submodules: true
44+
- name: Fetch dependencies
45+
env:
46+
# This is needed in addition to -yq to prevent apt-get from asking for
47+
# user input
48+
DEBIAN_FRONTEND: noninteractive
49+
run: |
50+
sudo apt-get install -yq cmake ninja-build clang-8 clang++-8 maven flex bison libxml2-utils cpanminus dpkg-dev
51+
cpanm Thread::Pool::Simple
52+
- name: Configure using CMake
53+
run: |
54+
mkdir build
55+
cd build
56+
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang-8 -DCMAKE_CXX_COMPILER=/usr/bin/clang++-8
57+
- name: Build with Ninja
58+
run: cd build; ninja
59+
- name: Check if package building works
60+
run: |
61+
cd build
62+
ninja package
63+
ls *.deb
64+
- name: Run tests
65+
run: cd build; ctest . -V -L CORE
66+
env:
67+
TESTPL_JOBS: 2
68+
69+
check-ubuntu-20_04-cmake-clang-3_8:
70+
runs-on: ubuntu-20.04
71+
steps:
72+
- uses: actions/checkout@v2
73+
with:
74+
submodules: true
75+
- name: Fetch dependencies
76+
env:
77+
# This is needed in addition to -yq to prevent apt-get from asking for
78+
# user input
79+
DEBIAN_FRONTEND: noninteractive
80+
run: |
81+
sudo apt-get install -yq cmake ninja-build clang-3.8 clang++-3.8 maven flex bison libxml2-utils cpanminus dpkg-dev
82+
cpanm Thread::Pool::Simple
83+
- name: Configure using CMake
84+
run: |
85+
mkdir build
86+
cd build
87+
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang-3.8 -DCMAKE_CXX_COMPILER=/usr/bin/clang++-3.8
88+
- name: Build with Ninja
89+
run: cd build; ninja
90+
- name: Check if package building works
91+
run: |
92+
cd build
93+
ninja package
94+
ls *.deb
95+
- name: Run tests
96+
run: cd build; ctest . -V -L CORE
97+
env:
98+
TESTPL_JOBS: 2
99+
38100
check-macos-10_15-cmake-clang:
39101
runs-on: macos-10.15
40102
steps:

buildspec-linux-clang-3.8.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

buildspec-linux-clang.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)