From a2e684e51f3d2de1eeb845394627c0d8c1759948 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 27 Jan 2021 11:35:48 +0400 Subject: [PATCH] .github: archive crashers and fix set-crashers-count step (#5992) --- .github/workflows/fuzz-nightly.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fuzz-nightly.yml b/.github/workflows/fuzz-nightly.yml index 148ec99e7..a60cdc294 100644 --- a/.github/workflows/fuzz-nightly.yml +++ b/.github/workflows/fuzz-nightly.yml @@ -44,9 +44,23 @@ jobs: run: timeout -s SIGINT --preserve-status 10m make fuzz-rpc-server continue-on-error: true + - name: Archive crashers + uses: actions/upload-artifact@v2 + with: + name: crashers + path: test/fuzz/**/crashers + retention-days: 1 + + - name: Archive suppressions + uses: actions/upload-artifact@v2 + with: + name: suppressions + path: test/fuzz/**/suppressions + retention-days: 1 + - name: Set crashers count working-directory: test/fuzz - run: echo "::set-output name=crashers-count::$(find . -type d -name "crashers" | xargs -I % sh -c 'ls % | wc -l' | awk '{total += $1} END {print total}')" + run: echo "::set-output name=crashers-count::$(find . -type d -name 'crashers' | xargs -I % sh -c 'ls % | wc -l' | awk '{total += $1} END {print total}')" id: set-crashers-count outputs: