fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1name: Fuzz 2on: 3 schedule: 4 # Once a week 5 - cron: '0 0 * * 0' 6 push: 7 paths: 8 - '.github/workflows/fuzz.yml' 9 # Allow manual trigger 10 workflow_dispatch: 11 12env: 13 CARGO_INCREMENTAL: 0 14 CARGO_NET_RETRY: 10 15 CI: 1 16 RUST_BACKTRACE: short 17 RUSTFLAGS: "-D warnings -W unreachable-pub -W bare-trait-objects" 18 RUSTUP_MAX_RETRIES: 10 19 20jobs: 21 rust: 22 if: ${{ github.repository == 'rust-lang/rust-analyzer' || github.event.action == 'workflow_dispatch' }} 23 name: Rust 24 runs-on: ubuntu-latest 25 env: 26 CC: deny_c 27 28 steps: 29 - name: Checkout repository 30 uses: actions/checkout@v3 31 with: 32 ref: ${{ github.event.pull_request.head.sha }} 33 fetch-depth: 1 34 35 - name: Install Rust toolchain 36 run: | 37 rustup install --profile minimal nightly 38 39 - name: Build fuzzers 40 run: | 41 cargo install cargo-fuzz 42 cd crates/syntax 43 cargo +nightly fuzz build