Add Ronin, first pass #155
Workflow file for this run
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: CI Game | |
on: | |
pull_request: | |
branches: [ master ] | |
push: | |
branches: [ master ] | |
jobs: | |
build-linux: | |
name: Build on Ubuntu | |
runs-on: ubuntu-22.04 | |
steps: | |
# This does not use LFS because it's only for compiling code. | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install dependencies | |
run: sudo apt update && sudo apt install -y libsdl2-dev | |
- name: Build | |
uses: ashutoshvarma/action-cmake-build@master | |
with: | |
build-dir: ${{runner.workspace}}/build | |
cc: gcc | |
cxx: g++ | |
build-type: MinSizeRel | |
target: install | |
configure-options: -DNF_ENABLE_TESTS=YES -DCMAKE_INSTALL_PREFIX=install -DNF_INSTALL_MODE=BINARIES | |
- name: Run tests | |
shell: bash | |
run: | | |
cd ${{runner.workspace}}/nightfire-open/install/nightfire-open | |
LD_LIBRARY_PATH=. ./bond -runtests | |
build-windows: | |
name: Build on Windows | |
runs-on: windows-2022 | |
steps: | |
# This does not use LFS because it's only for compiling code. | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Build | |
uses: ashutoshvarma/action-cmake-build@master | |
with: | |
build-dir: ${{runner.workspace}}/build | |
cc: cl | |
cxx: cl | |
build-type: MinSizeRel | |
target: install | |
configure-options: -DNF_ENABLE_TESTS=YES -DCMAKE_INSTALL_PREFIX=install -DNF_INSTALL_MODE=BINARIES | |
- name: Run tests | |
shell: cmd | |
run: | | |
cd ${{runner.workspace}}/nightfire-open/install/nightfire-open | |
bond.exe -runtests |