summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/oss-fuzz.yml
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2020-12-20 15:18:46 +0900
committerKOBAYASHI Shuji <[email protected]>2020-12-20 15:31:15 +0900
commit74e1d1ea02283f3f72ee6613e2433ceb9a8d4597 (patch)
tree3afe5d4de99bd83bb9dfad2ba9148195c6fe58b8 /.github/workflows/oss-fuzz.yml
parenta5283125424eeaa4f0436c195face0550c09a57f (diff)
downloadmruby-74e1d1ea02283f3f72ee6613e2433ceb9a8d4597.tar.gz
mruby-74e1d1ea02283f3f72ee6613e2433ceb9a8d4597.zip
Reorganize GitHub Actions configuration [skip travis][skip appveyor]
* Skip if commit message contains `ci skip`, `skip ci`, or `skip gha` ENCLOSED WITH BRACKETS (excluding lint job). * Separate build and test. This is because builds can be run in parallel, but running tests in parallel can cause logs to get mixed up or not finished. * Don't use Chocolatey because it seems to take 1-2 minutes to start up. * Use the cache better. * Use `actions/checkout@v2` instead of `actions/checkout@v1`. * Remove unnecessary package installation. * Remove unnecessary flag settings. * Remove `-j` for rake because it doesn't seem to have any effect. * Rename `main.yml` to `oss-fuzz.yml` to clarify.
Diffstat (limited to '.github/workflows/oss-fuzz.yml')
-rw-r--r--.github/workflows/oss-fuzz.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/oss-fuzz.yml b/.github/workflows/oss-fuzz.yml
new file mode 100644
index 000000000..8f2b24f17
--- /dev/null
+++ b/.github/workflows/oss-fuzz.yml
@@ -0,0 +1,27 @@
+name: CIFuzz
+on: [pull_request]
+jobs:
+ Fuzzing:
+ if: |
+ !contains(github.event.head_commit.message, '[ci skip]') &&
+ !contains(github.event.head_commit.message, '[skip ci]') &&
+ !contains(github.event.head_commit.message, '[skip gha]')
+ runs-on: ubuntu-latest
+ steps:
+ - name: Build Fuzzers
+ uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
+ with:
+ oss-fuzz-project-name: 'mruby'
+ dry-run: false
+ - name: Run Fuzzers
+ uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
+ with:
+ oss-fuzz-project-name: 'mruby'
+ fuzz-seconds: 600
+ dry-run: false
+ - name: Upload Crash
+ uses: actions/upload-artifact@v1
+ if: failure()
+ with:
+ name: artifacts
+ path: ./out/artifacts