mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-04 00:57:46 +08:00
fixing concurancy and coverage ci
This commit is contained in:
@@ -20,7 +20,8 @@ jobs:
|
|||||||
name: ${{ matrix.build_name }}
|
name: ${{ matrix.build_name }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}
|
# Use build_name, not os: ubuntu-24.04 and ubuntu-24.04-with-opengv share the same runner.
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.build_name }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
|
|||||||
@@ -5,12 +5,11 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
workflow_dispatch:
|
||||||
- '**'
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -23,6 +22,8 @@ jobs:
|
|||||||
coverage:
|
coverage:
|
||||||
name: Coverage (ubuntu-24.04)
|
name: Coverage (ubuntu-24.04)
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -73,7 +74,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
export LD_LIBRARY_PATH="${{ github.workspace }}/build/bin${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
export LD_LIBRARY_PATH="${{ github.workspace }}/build/bin${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
||||||
find ${{ github.workspace }}/build -name '*.gcda' -delete
|
find ${{ github.workspace }}/build -name '*.gcda' -delete
|
||||||
ctest --output-on-failure || true
|
ctest --output-on-failure
|
||||||
|
|
||||||
- name: Generate LCOV report
|
- name: Generate LCOV report
|
||||||
run: |
|
run: |
|
||||||
@@ -114,9 +115,9 @@ jobs:
|
|||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|
||||||
- name: Upload to Codecov
|
- name: Upload to Codecov
|
||||||
if: ${{ secrets.CODECOV_TOKEN != '' }}
|
if: ${{ env.CODECOV_TOKEN != '' }}
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
files: lcov.info
|
files: lcov.info
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ env.CODECOV_TOKEN }}
|
||||||
fail_ci_if_error: false
|
fail_ci_if_error: false
|
||||||
|
|||||||
Reference in New Issue
Block a user