From 72a947a8313286bbdab12f0cbb5c5d981719a71b Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Fri, 5 Mar 2021 18:49:56 +0100 Subject: [PATCH] merged build steps --- .github/workflows/build_and_test.yml | 60 ++++++++++------------------ 1 file changed, 21 insertions(+), 39 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 4d92cc1c80..2c37ddffcb 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -8,14 +8,32 @@ env: CARGO_TERM_COLOR: always jobs: - default: + ubuntu: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Build + - name: Default Build run: cargo build --verbose - - name: Test + - name: Default Test run: cargo test --verbose + - name: Build all features + run: cd libafl && cargo build --all-features --verbose + - name: Test all features + run: cd libafl && cargo test --all-features --verbose + - name: Build no_std + run: cd libafl && cargo build --no-default-features --verbose + - name: Test no_std + run: cd libafl && cargo test --no-default-features --verbose + - name: Build examples + run: cargo build --examples --verbose + - uses: actions/checkout@v2 + - name: Format + run: cargo fmt -- --check + - uses: actions/checkout@v2 + - name: Build Docs + run: cargo doc + - name: Test Docs + run: cargo test --doc windows: runs-on: windows-latest steps: @@ -24,39 +42,3 @@ jobs: run: cargo build --verbose - name: Windows Test run: cargo test --verbose - all-features: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Build all features - run: cd libafl && cargo build --all-features --verbose - - name: Test all features - run: cd libafl && cargo test --all-features --verbose - no-std: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Build no_std - run: cd libafl && cargo build --no-default-features --verbose - - name: Test no_std - run: cd libafl && cargo test --no-default-features --verbose - examples: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Build examples - run: cargo build --examples --verbose - fmt: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Format - run: cargo fmt -- --check - docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Build Docs - run: cargo doc - - name: Test Docs - run: cargo test --doc