mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
* use new CI server * fix fuzz lockfile Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --------- Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
28 lines
909 B
YAML
28 lines
909 B
YAML
on:
|
|
workflow_call:
|
|
|
|
name: CI
|
|
|
|
# Do not add permissions here! Configure them at the job level!
|
|
permissions: {}
|
|
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
|
|
jobs:
|
|
fuzz-test-parser:
|
|
name: Fuzz test parser (allowed to fail). Do check this if you've made changes to the parser.
|
|
runs-on: [self-hosted, i7-6700K]
|
|
timeout-minutes: 30
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: run fuzz tests - ok to merge if this one fails # for now!
|
|
run: |
|
|
cargo +nightly-2024-02-03 install --locked cargo-fuzz -Znext-lockfile-bump
|
|
cd crates/compiler/test_syntax/fuzz && cargo +nightly-2024-02-03 fuzz run -j4 fuzz_expr --sanitizer=none -- -dict=dict.txt -max_total_time=60 || true
|
|
cd ..
|
|
if ls fuzz/artifacts/fuzz_expr/ | grep crash-; then
|
|
for x in fuzz/artifacts/fuzz_expr/crash-*; do cargo run --bin minimize expr $x; done
|
|
exit 1
|
|
fi
|