From 2df1b72ce240ceef6201ef7fc578178768a4fc63 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 10 Dec 2020 18:12:26 -0500 Subject: [PATCH] CI: Add separate contributors action (#2689) --- .github/workflows/contributor.yml | 17 +++++++++++++++++ ci/ci-script.bash | 6 ++++-- test_regress/t/t_dist_contributors.pl | 4 +++- 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/contributor.yml diff --git a/.github/workflows/contributor.yml b/.github/workflows/contributor.yml new file mode 100644 index 000000000..627d00ab3 --- /dev/null +++ b/.github/workflows/contributor.yml @@ -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 diff --git a/ci/ci-script.bash b/ci/ci-script.bash index fce1c1c8b..1bf1347c6 100755 --- a/ci/ci-script.bash +++ b/ci/ci-script.bash @@ -57,9 +57,11 @@ elif [ "$CI_BUILD_STAGE_NAME" = "test" ]; then ############################################################################## # Run tests + export VERILATOR_TEST_NO_CONTRIBUTORS=1 # Separate workflow check + 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_GPROF=1 # Apple Clang has no -pg + 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 PATH="/Applications/gtkwave.app/Contents/Resources/bin:$PATH" # fst2vcd file bin/verilator_bin file bin/verilator_bin_dbg diff --git a/test_regress/t/t_dist_contributors.pl b/test_regress/t/t_dist_contributors.pl index 7f2764f91..65951f6b8 100755 --- a/test_regress/t/t_dist_contributors.pl +++ b/test_regress/t/t_dist_contributors.pl @@ -19,7 +19,9 @@ my $Debug; my %Contributors; 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"); } else { check();