ci: add coverage actions for macOS and windows (#1030)

* ci: add coverage actions for macOS and windows

* specify target as name

* use flags
This commit is contained in:
Clement Tsang 2023-02-26 00:01:08 -05:00 committed by GitHub
parent cabc594279
commit 870c29e6e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View file

@ -60,8 +60,8 @@ jobs:
# Note that m1 macOS is tested via CirrusCI.
supported:
needs: pre-job
runs-on: ${{ matrix.info.os }}
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
runs-on: ${{ matrix.info.os }}
timeout-minutes: 18
strategy:
fail-fast: false

View file

@ -34,8 +34,15 @@ jobs:
coverage:
needs: pre-job
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
runs-on: ${{ matrix.info.os }}
timeout-minutes: 18
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
info:
- { os: "ubuntu-latest" }
- { os: "macos-12" }
- { os: "windows-2019" }
steps:
- name: Checkout repository
uses: actions/checkout@v3
@ -64,3 +71,4 @@ jobs:
files: lcov.info
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.info.os }}