Skip to content

Commit cbdb8f4

Browse files
committed
Add github actions to run tests
1 parent 3574f98 commit cbdb8f4

File tree

3 files changed

+39
-57
lines changed

3 files changed

+39
-57
lines changed

.github/workflows/test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Install cmake
14+
run: mkdir -p deps/cmake && wget --no-check-certificate --quiet -O - "https://github.com/Kitware/CMake/releases/download/v3.21.3/cmake-3.21.3-linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C deps/cmake && export PATH=deps/cmake/bin:${PATH}
15+
16+
- name: Install Eigen
17+
run: sudo apt-get install -y libeigen3-dev
18+
19+
- name: Checkout commit
20+
uses: actions/checkout@v3
21+
with:
22+
lfs: true
23+
24+
- name: Checkout LFS objects
25+
run: git lfs checkout
26+
27+
- name: Configure
28+
run: |
29+
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install
30+
31+
- name: Build
32+
run: |
33+
cd build && cmake --build . --target install
34+
35+
- name: Test
36+
run: |
37+
cd build && ctest -C Debug --output-on-failure --verbose

.travis.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Voxel Traversal
22

3-
[![Build Status](https://app.travis-ci.com/risteon/voxel-traversal.svg?branch=main)](https://app.travis-ci.com/risteon/voxel-traversal)
3+
[![Build Status](https://github.com/risteon/voxel-traversal/actions/workflows/test.yml/badge.svg)](https://github.com/risteon/voxel-traversal/actions/workflows/test.yml)
4+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
45

56
A small library to compute voxel traversal on the CPU.
67
The implemented algorithm is J. Amanatides, A. Woo:

0 commit comments

Comments
 (0)