-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (37 loc) · 1.71 KB
/
cmake.yml
File metadata and controls
49 lines (37 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CMake
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install prerequisites
shell: bash
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main'
sudo apt update
sudo apt install -y cppcheck clang-tidy-14 clang-14 gcc-10
git clone https://github.com/taskflow/taskflow.git
cmake --fresh -S taskflow -B taskflow/build -DCMAKE_BUILD_TYPE=Release
sudo cmake --install taskflow/build
- name: Configure CMake - Release - GNU
run: CC=gcc-10 CXX=g++-10 cmake -S ${{github.workspace}} -B ${{github.workspace}}/build --fresh -DCMAKE_BUILD_TYPE=Release
- name: Build - Release - GNU
run: cmake --build ${{github.workspace}}/build
- name: Configure CMake - Debug - GNU
run: CC=gcc-10 CXX=g++-10 cmake -S ${{github.workspace}} -B ${{github.workspace}}/build --fresh -DCMAKE_BUILD_TYPE=Debug
- name: Build - Debug - GNU
run: cmake --build ${{github.workspace}}/build
- name: Configure CMake - Release - Clang
run: CC=clang-14 CXX=clang++-14 cmake -S ${{github.workspace}} -B ${{github.workspace}}/build --fresh -DCMAKE_BUILD_TYPE=Release
- name: Build - Release - Clang
run: cmake --build ${{github.workspace}}/build
- name: Configure CMake - Debug - Clang
run: CC=clang-14 CXX=clang++-14 cmake -S ${{github.workspace}} -B ${{github.workspace}}/build --fresh -DCMAKE_BUILD_TYPE=Debug
- name: Build - Debug - Clang
run: cmake --build ${{github.workspace}}/build