Skip to content

Commit 7399c0b

Browse files
author
pfeatherstone
committed
merge the macos workflows into a single one
1 parent 2ed9c92 commit 7399c0b

File tree

7 files changed

+60
-112
lines changed

7 files changed

+60
-112
lines changed

.github/workflows/ubuntu.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Ubuntu
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
pull_request:
7+
branches:
8+
- '**'
9+
10+
jobs:
11+
build-test:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
include:
16+
- os: ubuntu-22.04
17+
compiler: gcc
18+
c_compiler: gcc
19+
cxx_compiler: g++
20+
name: Ubuntu-22.04-GCC
21+
packages: gcc g++
22+
- os: ubuntu-22.04
23+
compiler: clang
24+
c_compiler: clang
25+
cxx_compiler: clang++
26+
name: Ubuntu-22.04-Clang
27+
packages: clang
28+
- os: ubuntu-24.04
29+
compiler: gcc
30+
c_compiler: gcc
31+
cxx_compiler: g++
32+
name: Ubuntu-24.04-GCC
33+
packages: gcc g++
34+
- os: ubuntu-24.04
35+
compiler: clang
36+
c_compiler: clang
37+
cxx_compiler: clang++
38+
name: Ubuntu-24.04-Clang
39+
packages: clang
40+
41+
name: ${{ matrix.name }}
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v4
45+
46+
- name: Install dependencies
47+
run: |
48+
sudo apt update
49+
sudo apt install -y ninja-build cmake ${{ matrix.packages }}
50+
51+
- name: Run CMake configuration and build
52+
run: |
53+
cmake examples -B build -G Ninja \
54+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
55+
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
56+
-DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }}
57+
cmake --build build --parallel
58+
59+
- name: Run Unit Tests
60+
run: ./build/tests

.github/workflows/ubuntu22_clang.yml

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

.github/workflows/ubuntu22_gcc.yml

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

.github/workflows/ubuntu24_clang.yml

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

.github/workflows/ubuntu24_gcc.yml

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

0 commit comments

Comments
 (0)