verilator/.github/workflows/coverage.yml

90 lines
2.1 KiB
YAML
Raw Normal View History

2020-12-08 02:57:10 +00:00
# DESCRIPTION: Github actions config
name: coverage
2020-12-10 01:30:18 +00:00
on:
2020-12-08 02:57:10 +00:00
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # weekly
2020-12-10 01:30:18 +00:00
env:
CI_OS_NAME: linux
CI_COMMIT: ${{ github.sha }}
CCACHE_COMPRESS: 1
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_MAXSIZE: 2Gi # 2GiB for clang and gcc, 4GiB in total
COVERAGE: 1
CI_BUILD_STAGE_NAME: test
2020-12-08 02:57:10 +00:00
jobs:
2020-12-10 01:30:18 +00:00
buildjob:
2020-12-08 02:57:10 +00:00
strategy:
fail-fast: false
2020-12-10 01:30:18 +00:00
runs-on: ubuntu-20.04
steps:
2020-12-10 01:37:11 +00:00
- uses: actions/checkout@v2
- uses: ./.github/actions/coverage-build
2020-12-10 01:30:18 +00:00
test-dist:
needs: buildjob
steps:
2020-12-10 01:37:11 +00:00
- uses: actions/checkout@v2
- uses: ./.github/actions/coverage-build
2020-12-10 01:30:18 +00:00
- run: bash TESTS=coverage-dist ci/ci-script.bash
test-vlt-0:
needs: buildjob
steps:
2020-12-10 01:37:11 +00:00
- uses: actions/checkout@v2
- uses: ./.github/actions/coverage-build
2020-12-10 01:30:18 +00:00
- run: bash TESTS=coverage-vlt-0 ci/ci-script.bash
test-vlt-1:
needs: buildjob
steps:
2020-12-10 01:37:11 +00:00
- uses: actions/checkout@v2
- uses: ./.github/actions/coverage-build
2020-12-10 01:30:18 +00:00
- run: bash TESTS=coverage-vlt-1 ci/ci-script.bash
test-vlt-2:
needs: buildjob
steps:
2020-12-10 01:37:11 +00:00
- uses: actions/checkout@v2
- uses: ./.github/actions/coverage-build
2020-12-10 01:30:18 +00:00
- run: bash TESTS=coverage-vlt-2 ci/ci-script.bash
test-vlt-3:
needs: buildjob
steps:
2020-12-10 01:37:11 +00:00
- uses: actions/checkout@v2
- uses: ./.github/actions/coverage-build
2020-12-10 01:30:18 +00:00
- run: bash TESTS=coverage-vlt-3 ci/ci-script.bash
test-vltmt-0:
needs: buildjob
steps:
2020-12-10 01:37:11 +00:00
- uses: actions/checkout@v2
- uses: ./.github/actions/coverage-build
2020-12-10 01:30:18 +00:00
- run: bash TESTS=coverage-vltmt-0 ci/ci-script.bash
test-vltmt-1:
needs: buildjob
steps:
2020-12-10 01:37:11 +00:00
- uses: actions/checkout@v2
- uses: ./.github/actions/coverage-build
2020-12-10 01:30:18 +00:00
- run: bash TESTS=coverage-vltmt-1 ci/ci-script.bash
test-vltmt-2:
needs: buildjob
steps:
2020-12-10 01:37:11 +00:00
- uses: actions/checkout@v2
- uses: ./.github/actions/coverage-build
2020-12-10 01:30:18 +00:00
- run: bash TESTS=coverage-vltmt-2 ci/ci-script.bash
test-vltmt-3:
needs: buildjob
steps:
2020-12-10 01:37:11 +00:00
- uses: actions/checkout@v2
- uses: ./.github/actions/coverage-build
2020-12-10 01:30:18 +00:00
- run: bash TESTS=coverage-vltmt-3 ci/ci-script.bash