Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.0
ruby-version: '3.0'

- name: Install Packages
run: |
Expand All @@ -25,7 +25,7 @@ jobs:
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=ON
cmake .. -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5
cd ..

- name: Build
Expand All @@ -36,6 +36,8 @@ jobs:
cd ..

- name: Coveralls
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS }}
run: |
cd build
gem install coveralls-lcov
Expand All @@ -45,4 +47,8 @@ jobs:
: #
: # lcov --list coverage-filtered.info
: # genhtml coverage-filtered.info
coveralls-lcov --repo-token ${{ secrets.COVERALLS }} coverage-filtered.info
if [ -n "$COVERALLS_TOKEN" ]; then
coveralls-lcov --repo-token "$COVERALLS_TOKEN" coverage-filtered.info
else
echo "Coveralls token not configured; coverage generated locally, upload skipped."
fi
Loading