Github Actions Cache (#205)
* trying out github actions cache * split up build steps * deactivated cache for macos * debugging * also for windows (?)) * clippy fix * out folder ignored
This commit is contained in:
parent
c01f1e3318
commit
84a9e36acf
54
.github/workflows/build_and_test.yml
vendored
54
.github/workflows/build_and_test.yml
vendored
@ -17,13 +17,10 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Cache cargo registry
|
||||
uses: actions/cache@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
key: clippy-cargo-${{ hashFiles('**/Cargo.toml') }}
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
- name: Add clippy
|
||||
run: rustup component add clippy
|
||||
#- name: Run clippy
|
||||
@ -36,8 +33,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
- name: Install deps
|
||||
run: sudo apt-get install -y llvm llvm-dev clang nasm
|
||||
run: sudo apt-get install -y llvm llvm-dev clang
|
||||
- name: get clang version
|
||||
run: command -v llvm-config && clang -v
|
||||
- name: Install cargo-hack
|
||||
@ -62,12 +63,26 @@ jobs:
|
||||
run: cargo test --all-features --doc
|
||||
- name: Run clippy
|
||||
run: ./scripts/clippy.sh
|
||||
- name: Build fuzzers
|
||||
ubuntu-fuzzers:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
- name: Install deps
|
||||
run: sudo apt-get install -y llvm llvm-dev clang nasm
|
||||
- name: Build and run example fuzzers
|
||||
run: ./scripts/build_all_fuzzers.sh
|
||||
windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
- name: Windows Build
|
||||
run: cargo build --verbose
|
||||
- name: Run clippy
|
||||
@ -78,18 +93,33 @@ jobs:
|
||||
runs-on: macOS-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
- name: MacOS Build
|
||||
run: cargo build --verbose
|
||||
- name: Install deps
|
||||
run: brew install llvm libpng nasm
|
||||
- name: Run clippy
|
||||
run: ./scripts/clippy.sh
|
||||
- name: Build fuzzers
|
||||
run: ./scripts/build_all_fuzzers.sh
|
||||
- name: Increase map sizes
|
||||
run: ./scripts/shmem_limits_macos.sh
|
||||
- name: Run Tests
|
||||
run: cargo test
|
||||
macos-fuzzers:
|
||||
runs-on: macOS-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
- name: Install deps
|
||||
run: brew install llvm libpng nasm
|
||||
|
||||
- name: Increase map sizes
|
||||
run: ./scripts/shmem_limits_macos.sh
|
||||
- name: Build and run example fuzzers
|
||||
run: ./scripts/build_all_fuzzers.sh
|
||||
# TODO: Figure out how to properly build stuff with clang
|
||||
#- name: Add clang path to $PATH env
|
||||
# if: runner.os == 'Windows'
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
target
|
||||
out
|
||||
Cargo.lock
|
||||
|
||||
*.o
|
||||
|
@ -382,14 +382,14 @@ where
|
||||
_sender_id, client_config, input
|
||||
);
|
||||
|
||||
let res = if client_config == self.configuration {
|
||||
let _res = if client_config == self.configuration {
|
||||
let observers: OT = postcard::from_bytes(&observers_buf)?;
|
||||
fuzzer.process_execution(state, self, input, &observers, &exit_kind, false)?
|
||||
} else {
|
||||
fuzzer.evaluate_input_with_observers(state, executor, self, input, false)?
|
||||
};
|
||||
#[cfg(feature = "std")]
|
||||
if let Some(item) = res.1 {
|
||||
if let Some(item) = _res.1 {
|
||||
println!("Added received Testcase as item #{}", item);
|
||||
}
|
||||
Ok(())
|
||||
|
Loading…
x
Reference in New Issue
Block a user