-
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (33 loc) · 938 Bytes
/
ci-cpp.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
# C++ CI workflow
name: C++ CI
on:
push:
paths:
- compiler/cpp/**
pull_request:
branches: [ main, release/**, feature/** ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare environment
run: |
shopt -s extglob
rm -rf !("compiler")
cp -fR ./compiler/cpp/* .
rm -rf ./compiler
- name: Download Libs
run: |
mkdir -p ./lib/json
cd lib
git clone --depth 1 --branch v1.14.0 https://github.com/google/googletest.git
curl -sSL "https://github.com/nlohmann/json/releases/download/v3.11.2/json.hpp" --output json/json.hpp
- name: Build project
uses: nicledomaS/[email protected]
with:
submodule_update: ON
run_tests: ON
cmake_args: -DWITH_TESTS=ON
unit_test_build: -Dtest=ON