Skip to content

Commit

Permalink
Merge branch 'salt-fm'
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeekman committed Jan 28, 2025
2 parents a5be6fa + 28e6d85 commit c0f7572
Show file tree
Hide file tree
Showing 38 changed files with 27,078 additions and 14,317 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: paratools/salt-dev:1.1
image: ghcr.io/paratoolsinc/salt-dev:1.3
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -17,8 +17,33 @@ jobs:
- name: Configure SALT
run: cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -Wdev -Wdeprecated -G Ninja -S . -B build
- name: Compile SALT
id: build
run: |
echo "Cores: $(nproc) "
cmake --build build --parallel $(nproc) || cmake --build build --verbose
if cmake --build build --parallel $(nproc) ; then
echo "build_status=success" >> $GITHUB_OUTPUT
else
echo "build_status=failure" >> $GITHUB_OUTPUT
echo "::error::Initial build failed, re-attempting build with verbose output but failing CI"
echo "Initial build failed, re-attempting build with verbose output but failing CI"
if ! cmake --build build --verbose ; then
echo "Verbose build failed on second attempt"
echo "::error::Verbose build failed on second attempt"
exit 1
fi
fi
- name: Run Tests
run: cd build && ctest --output-on-failure
working-directory: build
run: |
if ! ctest -j --output-on-failure ; then
echo "::error::Tests failed, re-running tests with verbose output"
echo "Tests failed, re-running tests with verbose output"
if ! ctest --rerun-failed --verbose ; then
echo "Rerunning failed tests failed on second attempt"
echo "::error::Rerunning failed tests failed on second attempt"
fi
exit 1
fi
- name: Fail CI on build failure
if: ${{ steps.build.outputs.build_status == 'failure' }}
run: echo "Failing build" ; exit 1
Loading

0 comments on commit c0f7572

Please sign in to comment.