This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
snap nodes to collider #184
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
jobs: | |
Windows: | |
name: windows-${{ matrix.os-version }}-${{ matrix.build-config }}-${{ matrix.build-arch }} | |
runs-on: windows-${{ matrix.os-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os-version: [2022] | |
build-config: [debug, release, relwithdebinfo] | |
build-arch: [x64] | |
steps: | |
- name: Versions | |
shell: bash | |
run: | | |
cmake --version | |
git --version | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Configure | |
shell: bash | |
run: | | |
mkdir build | |
cd build | |
cmake -A${{ matrix.build-arch }} -DCMAKE_BUILD_TYPE=${{ matrix.build-config }} .. | |
- name: Build | |
shell: bash | |
run: | | |
cd build | |
cmake --build . --config ${{ matrix.build-config }} | |
- name: Run | |
shell: bash | |
run: | | |
cd build/result/${{ matrix.build-config }} | |
./unnatural-planets -s sphere | |
Ubuntu: | |
name: ubuntu-${{ matrix.os-version }}-${{ matrix.build-config }}-${{ matrix.compiler.cc }} | |
runs-on: ubuntu-${{ matrix.os-version }}.04 | |
env: | |
CC: ${{ matrix.compiler.cc }} | |
CXX: ${{ matrix.compiler.cxx }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os-version: [22] | |
build-config: [debug, release, relwithdebinfo] | |
compiler: | |
- { | |
cc: gcc-13, | |
cxx: g++-13, | |
install: gcc-13 g++-13 | |
} | |
- { | |
cc: clang-15, | |
cxx: clang++-15, | |
install: clang-15 | |
} | |
steps: | |
- name: Install packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y xorg-dev nasm ${{ matrix.compiler.install }} | |
- name: Versions | |
run: | | |
cmake --version | |
${{ matrix.compiler.cc }} --version | |
${{ matrix.compiler.cxx }} --version | |
git --version | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Configure | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-config }} .. | |
- name: Build | |
run: | | |
cd build | |
cmake --build . --config ${{ matrix.build-config }} -- -j3 | |
- name: Run | |
run: | | |
cd build/result/${{ matrix.build-config }} | |
./unnatural-planets -s sphere | |