Skip to content

Bump clap from 4.3.4 to 4.3.8 #617

Bump clap from 4.3.4 to 4.3.8

Bump clap from 4.3.4 to 4.3.8 #617

Workflow file for this run

name: Rust
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
concurrency:
group: rust-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- run: sudo apt-get install llvm
- name: Cargo sort
run: cargo install cargo-sort && cargo sort --check .
- name: Format
run: cargo fmt && git diff --exit-code
- name: Clippy
run: cargo clippy --all-targets -- -D warnings -W clippy::pedantic -A clippy::missing-panics-doc
build:
strategy:
fail-fast: false
matrix:
environment: [ubuntu-latest, macos-latest]
toolchain: [stable, nightly]
cc: [cc, clang]
include:
- cc: cc
cxx: c++
- cc: clang
cxx: clang++
runs-on: ${{ matrix.environment }}
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
steps:
- if: ${{ matrix.environment == 'ubuntu-latest' }}
run: sudo apt-get install llvm
- uses: actions/checkout@v3
with:
submodules: true
- name: Rustup
run: rustup default ${{ matrix.toolchain }}
- name: Build
run: cargo build -vv
- name: Run afl-system-config
run: |
sudo AFLplusplus/afl-system-config
# smoelius: Remove once the following is published:
# https://github.com/AFLplusplus/AFLplusplus/commit/a7b7f3cde9b3a420ea5ac32f7309e8a856a01e94
if [[ ${{ matrix.environment }} = 'macos-latest' ]]; then
SL=/System/Library; PL=com.apple.ReportCrash
launchctl unload -w ${SL}/LaunchAgents/${PL}.plist
sudo launchctl unload -w ${SL}/LaunchDaemons/${PL}.Root.plist
fi
- name: Build examples (with AFL instrumentation)
run: cargo run afl build --examples -vv
- name: Run tests (with AFL instrumentation)
run: cargo run afl test -vv
all-checks:
needs: [lint, build]
runs-on: ubuntu-latest
steps:
- run: true