name: CMake
-on: [push, pull_request, workflow_dispatch]
+on: [workflow_call, workflow_dispatch]
env:
TERM: xterm-256color
GTEST_COLOR: 1
- name: Upload job coverage report to coveralls
uses: coverallsapp/github-action@v2
- if: (matrix.coverage && !contains(matrix.os, 'z15') && (env.COVERALLS_REPO_TOKEN != '' || github.repository == 'zlib-ng/zlib-ng'))
+ env:
+ COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
+ if: |
+ matrix.codecov
+ && !contains(matrix.os, 'z15')
+ && (env.COVERALLS_REPO_TOKEN != '' || github.repository == 'zlib-ng/zlib-ng')
with:
file: ${{ matrix.coverage }}.xml
flag-name: "${{ matrix.name }}-${{ github.event_name }}"
parallel: true
- env:
- COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
- name: Test benchmarks (crashtest only, no coverage data collection)
if: contains(matrix.cmake-args, '-DWITH_BENCHMARKS=ON')
**/Testing/Temporary/*
${{ matrix.coverage }}.xml
retention-days: 30
-
- coverage:
- name: Upload Coverage Reports
- runs-on: ubuntu-latest
- needs: cmake
- if: cancelled() == false
- steps:
- - name: Upload to Coveralls - Final
- uses: coverallsapp/github-action@v2
- if: (env.COVERALLS_REPO_TOKEN != '' || github.repository == 'zlib-ng/zlib-ng')
- with:
- parallel-finished: true
- env:
- COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
--- /dev/null
+name: Orchestrator
+on: [push, pull_request]
+
+jobs:
+ cmake:
+ uses: ./.github/workflows/cmake.yml
+ secrets: inherit
+
+ pigz:
+ uses: ./.github/workflows/pigz.yml
+ secrets: inherit
+
+ # This job only starts if ALL reusable workflows above succeed
+ final-upload:
+ needs: [cmake, pigz]
+ runs-on: ubuntu-slim
+ if: success()
+ steps:
+ - name: Coveralls - Finalize
+ uses: coverallsapp/github-action@v2
+ if: (env.COVERALLS_REPO_TOKEN != '' || github.repository == 'zlib-ng/zlib-ng')
+ with:
+ parallel-finished: true
+ env:
+ COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
name: Pigz
-on: [push, pull_request, workflow_dispatch]
+on: [workflow_call, workflow_dispatch]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
--root . \
--xml --output ${{ matrix.coverage }}.xml
+ - name: Upload job coverage report to coveralls
+ uses: coverallsapp/github-action@v2
+ env:
+ COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
+ if: |
+ matrix.codecov
+ && (env.COVERALLS_REPO_TOKEN != '' || github.repository == 'zlib-ng/zlib-ng')
+ with:
+ file: ${{ matrix.codecov }}.xml
+ flag-name: "${{ matrix.name }}-${{ github.event_name }}"
+ parallel: true
+
- name: Upload build errors
uses: actions/upload-artifact@v7
if: failure()