disable clippy --all on windows for now (due to frida issues)

This commit is contained in:
Dominik Maier 2021-04-30 16:03:04 +02:00
parent 9ee427a1fa
commit 730df64712

View File

@ -1,73 +1,83 @@
name: Build and Test name: Build and Test
on: on:
push: push:
branches: [ main, dev ] branches: [ main, dev ]
pull_request: pull_request:
branches: [ main, dev ] branches: [ main, dev ]
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
jobs: jobs:
lint: lint:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, windows-latest] os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Cache cargo registry - name: Cache cargo registry
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
~/.cargo/registry ~/.cargo/registry
~/.cargo/git ~/.cargo/git
key: clippy-cargo-${{ hashFiles('**/Cargo.toml') }} key: clippy-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: Add clippy - name: Add clippy
run: rustup component add clippy run: rustup component add clippy
- name: Run clippy #- name: Run clippy
uses: actions-rs/cargo@v1 # uses: actions-rs/cargo@v1
with: # with:
command: clippy # command: clippy
args: --all # args: --all
ubuntu:
runs-on: ubuntu-latest ubuntu:
steps: runs-on: ubuntu-latest
- uses: actions/checkout@v2 steps:
- name: Default Build - uses: actions/checkout@v2
run: cargo build --verbose - name: Default Build
- name: Default Test run: cargo build --verbose
run: cargo test --verbose - name: Default Test
- name: Build all features run: cargo test --verbose
run: cd libafl && cargo build --all-features --verbose - name: Build all features
- name: Test all features run: cd libafl && cargo build --all-features --verbose
run: cd libafl && cargo test --all-features --verbose - name: Test all features
- name: Build no_std run: cd libafl && cargo test --all-features --verbose
run: cd libafl && cargo build --no-default-features --verbose - name: Build no_std
- name: Test no_std run: cd libafl && cargo build --no-default-features --verbose
run: cd libafl && cargo test --no-default-features --verbose - name: Test no_std
- name: Build examples run: cd libafl && cargo test --no-default-features --verbose
run: cargo build --examples --verbose - name: Build examples
- uses: actions/checkout@v2 run: cargo build --examples --verbose
- name: Format - uses: actions/checkout@v2
run: cargo fmt -- --check - name: Format
- uses: actions/checkout@v2 run: cargo fmt -- --check
- name: Build Docs - uses: actions/checkout@v2
run: cargo doc - name: Build Docs
- name: Test Docs run: cargo doc
run: cargo test --doc - name: Test Docs
windows: run: cargo test --doc
runs-on: windows-latest - name: Run clippy
steps: uses: actions-rs/cargo@v1
- uses: actions/checkout@v2 with:
- name: Windows Build command: clippy
run: cargo build --verbose args: --all
# TODO: Figure out how to properly build stuff with clang windows:
#- name: Add clang path to $PATH env runs-on: windows-latest
# if: runner.os == 'Windows' steps:
# run: echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 - uses: actions/checkout@v2
#- name: Try if clang works - name: Windows Build
# run: clang -v run: cargo build --verbose
#- name: Windows Test - name: Run clippy
# run: C:\Rust\.cargo\bin\cargo.exe test --verbose uses: actions-rs/cargo@v1
with:
command: clippy
# TODO: Figure out how to properly build stuff with clang
#- name: Add clang path to $PATH env
# if: runner.os == 'Windows'
# run: echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
#- name: Try if clang works
# run: clang -v
#- name: Windows Test
# run: C:\Rust\.cargo\bin\cargo.exe test --verbose