-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (40 loc) · 991 Bytes
/
build_test.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
38
39
40
41
name: C++ Build
'on':
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libzip-dev libeigen3-dev nlohmann-json3-dev libspdlog-dev
- name: Install Google Test v1.12.1
run: |
git clone -b release-1.12.1 https://github.com/google/googletest.git
cd googletest
mkdir build
cd build
cmake ..
sudo make
sudo make install
- name: Install mio
run: |
git clone -b master https://github.com/vimpunk/mio.git
cd mio
mkdir build
cd build
cmake ..
sudo make
sudo make install
- name: Build C++ project
run: |
cmake -B build
make