-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.1 KB
/
c-cpp.yml
File metadata and controls
41 lines (35 loc) · 1.1 KB
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: CI/CD
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up GCC
run: |
sudo apt-get install -yqq g++ cmake libgtest-dev libglm-dev libxsimd-dev libboost-timer-dev libboost-program-options-dev
git clone https://github.com/Forceflow/libmorton.git && cd libmorton && mkdir build && cd build && cmake .. && make && sudo make install
continue-on-error: true
- name: Build
run: |
mkdir build
cd build
cmake ..
echo "compiling with $(nproc) cores"
make -j $(nproc)
working-directory: ${{ github.workspace }}
- name: Test
run: |
cd build
./tests/tests --gtest_output=xml:xunit.xml --gtest_filter=-FileWriting.*
working-directory: ${{ github.workspace }}
- name: Upload Test Results
uses: actions/upload-artifact@v3.1.3
with:
name: test-results
path: build/xunit.xml