-
Notifications
You must be signed in to change notification settings - Fork 58
37 lines (34 loc) · 1.02 KB
/
ubuntu.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
28
29
30
31
32
33
34
35
36
37
name: CI Ubuntu
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get dependencies
run: |
sudo apt-get install -y libpulse-dev ninja-build libbsd-dev
wget --no-check-certificate -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-13 main'
sudo apt-get update
sudo apt-get install clang-format-13
- name: Get sources
uses: actions/checkout@v4
- name: Configure Einstein
run: |
cmake -S . -B _Build_/Makefiles
- name: Check format
run: |
cmake --build _Build_/Makefiles --target clang-format-check
- name: Compile Einstein
run: |
cmake --build _Build_/Makefiles
- name: Run tests
run: |
_Build_/Makefiles/EinsteinTests