mirror of
https://github.com/verilator/verilator.git
synced 2025-01-08 15:47:36 +00:00
32 lines
783 B
YAML
32 lines
783 B
YAML
# DESCRIPTION: Github actions config
|
|
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
|
|
|
name: coverage-build-action
|
|
description: "Common steps needed for coverage build jobs"
|
|
|
|
runs:
|
|
using: "Composite"
|
|
steps:
|
|
- name: Cache
|
|
uses: actions/cache@v2
|
|
env:
|
|
cache-name: ccache
|
|
with:
|
|
path: ${{ github.workspace }}/.ccache
|
|
key: coverage-${{ env.cache-name }}-${{ github.sha }}
|
|
restore-keys: |
|
|
coverage-${{ env.cache-name }}
|
|
|
|
- name: Install and build
|
|
env:
|
|
CI_BUILD_STAGE_NAME: build
|
|
run: |
|
|
bash ci/ci-install.bash
|
|
mkdir -p $CCACHE_DIR && bash ci/ci-ccache-maint.bash
|
|
bash ci/ci-script.bash
|
|
|
|
- name: Install packages for tests
|
|
env:
|
|
CI_BUILD_STAGE_NAME: test
|
|
run: bash ci/ci-install.bash
|