-
Notifications
You must be signed in to change notification settings - Fork 130
55 lines (45 loc) · 1.73 KB
/
fuzz.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
# This file defines a GitHub actions job that runs the fuzzing test suite for
# 10 minutes every weekday against the latest CompilerGym release. The job can
# also be scheduled manually using the GitHub actions UI.
#
# TODO(cummins): Set up https://github.com/JasonEtco/create-an-issue
# to create a boilerplate issue if `make fuzz` fails.
name: Release Fuzz
on:
workflow_dispatch:
schedule:
- cron: 0 9 * * 1-5 # every weekday at 9am
jobs:
fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Persist the bazel cache
uses: actions/cache@v2
with:
path: ~/.cache/bazel/_bazel_runner
key: bazel-${{ hashFiles('WORKSPACE') }}-${{ hashFiles('**/BUILD') }}
restore-keys: |
bazel-${{ hashFiles('WORKSPACE') }}-
bazel-
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install build dependencies
uses: ./.github/actions/install-build-dependencies
- name: Build and install Python wheel
run: make install
env:
CC: clang
CXX: clang++
BAZEL_OPTS: --batch
BAZEL_FETCH_OPTS: --config=ci
BAZEL_BUILD_OPTS: --config=ci
- name: Install runtime dependencies
uses: ./.github/actions/install-runtime-dependencies
- name: Install test dependencies
run: python -m pip install -r tests/requirements.txt
- name: Fuzz test
run: FUZZ_TIME=600 make fuzz