-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 860 Bytes
/
build.yml
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
name: Build
on:
push:
pull_request:
jobs:
build:
strategy:
matrix:
version: [10, 11, 12, 13]
name: Build (GCC ${{ matrix.version }})
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install --assume-yes --no-install-recommends ca-certificates cmake git libtbb-dev gcc-${{ matrix.version }} g++-${{ matrix.version }}
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.version }} ${{ matrix.version }}
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.version }} ${{ matrix.version }}
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build
run: |
cmake -B ./build
cmake --build ./build --parallel