Avoid changing working directory

develop
lethosor 2020-04-11 00:31:15 -04:00
parent 19f84603cd
commit 35dbf6cf5f
1 changed files with 4 additions and 5 deletions

@ -45,19 +45,18 @@ jobs:
- name: Build DFHack - name: Build DFHack
run: | run: |
source "$HOME/.dfhackrc" source "$HOME/.dfhackrc"
mkdir build-ci cmake \
cd build-ci -S . \
cmake .. \ -B build-ci \
-G Ninja \ -G Ninja \
-DDFHACK_BUILD_ARCH=64 \ -DDFHACK_BUILD_ARCH=64 \
-DBUILD_DOCS:BOOL=ON \ -DBUILD_DOCS:BOOL=ON \
-DBUILD_TESTS:BOOL=ON \ -DBUILD_TESTS:BOOL=ON \
-DCMAKE_INSTALL_PREFIX="$DF_FOLDER" -DCMAKE_INSTALL_PREFIX="$DF_FOLDER"
ninja install ninja -C build-ci install
- name: Run tests - name: Run tests
run: | run: |
source "$HOME/.dfhackrc" source "$HOME/.dfhackrc"
cd ..
mv "$DF_FOLDER"/dfhack.init-example "$DF_FOLDER"/dfhack.init mv "$DF_FOLDER"/dfhack.init-example "$DF_FOLDER"/dfhack.init
python travis/run-tests.py --headless --keep-status "$DF_FOLDER" python travis/run-tests.py --headless --keep-status "$DF_FOLDER"
python travis/check-rpc.py "$DF_FOLDER/dfhack-rpc.txt" python travis/check-rpc.py "$DF_FOLDER/dfhack-rpc.txt"