CI: Add separate contributors action (#2689)
This commit is contained in:
parent
2998890647
commit
2df1b72ce2
|
|
@ -0,0 +1,17 @@
|
||||||
|
# DESCRIPTION: Github actions config
|
||||||
|
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
||||||
|
|
||||||
|
name: Contributor Agreement
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Test:
|
||||||
|
name: "'docs/CONTRIBUTORS' was signed"
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: test_regress/t/t_dist_contributors.pl
|
||||||
|
|
@ -57,9 +57,11 @@ elif [ "$CI_BUILD_STAGE_NAME" = "test" ]; then
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Run tests
|
# Run tests
|
||||||
|
|
||||||
|
export VERILATOR_TEST_NO_CONTRIBUTORS=1 # Separate workflow check
|
||||||
|
|
||||||
if [ "$CI_OS_NAME" = "osx" ]; then
|
if [ "$CI_OS_NAME" = "osx" ]; then
|
||||||
export VERILATOR_TEST_NO_GDB=1 # Pain to get GDB to work on OS X
|
export VERILATOR_TEST_NO_GDB=1 # Pain to get GDB to work on OS X
|
||||||
export VERILATOR_TEST_NO_GPROF=1 # Apple Clang has no -pg
|
export VERILATOR_TEST_NO_GPROF=1 # Apple Clang has no -pg
|
||||||
# export PATH="/Applications/gtkwave.app/Contents/Resources/bin:$PATH" # fst2vcd
|
# export PATH="/Applications/gtkwave.app/Contents/Resources/bin:$PATH" # fst2vcd
|
||||||
file bin/verilator_bin
|
file bin/verilator_bin
|
||||||
file bin/verilator_bin_dbg
|
file bin/verilator_bin_dbg
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,9 @@ my $Debug;
|
||||||
my %Contributors;
|
my %Contributors;
|
||||||
my %Authors;
|
my %Authors;
|
||||||
|
|
||||||
if (!-r "$root/.git") {
|
if ($ENV{VERILATOR_TEST_NO_CONTRIBUTORS}) {
|
||||||
|
skip("Skipping due to VERILATOR_TEST_NO_CONTRIBUTORS");
|
||||||
|
} elsif (!-r "$root/.git") {
|
||||||
skip("Not in a git repository");
|
skip("Not in a git repository");
|
||||||
} else {
|
} else {
|
||||||
check();
|
check();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue