Skip to content

Commit

Permalink
CI should work now
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinMeimar committed May 23, 2024
1 parent b9c1053 commit 5a9e90b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build tester
run: mkdir build\
&& cd build\
&& cmake ..\
&& make

- name: run tests

- name: build and run tester
run: tests/run_tests.sh
14 changes: 13 additions & 1 deletion tests/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
#!/bin/bash

PROJECT_BASE="../"

bin/tester ./TestConfig.json
if [ -f $PROJECT_BASE/bin/tester ]; then
echo "Tester binary found"
else
echo "Building the Tester"
mkdir -p "$PROJECT_BASE/build"
cd "$PROJECT_BASE/build"
cmake ..
make
cd -
fi

$PROJECT_BASE/bin/tester ./TestConfig.json

status=$?

Expand Down

0 comments on commit 5a9e90b

Please sign in to comment.