From d0bbba6e3a02dfa6747f4a24463928d8d4792261 Mon Sep 17 00:00:00 2001 From: Khan Winter <35942988+thecoolwinter@users.noreply.github.com> Date: Tue, 2 Sep 2025 22:33:09 -0500 Subject: [PATCH] Revert "Break Fuzzing out into it's own step" This reverts commit 5bda8ef9705180890df77e58c77d4bf7e02cfca8. --- .github/workflows/ci.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0879f1..10492d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,27 +38,20 @@ jobs: else set -o pipefail && swift test | xcbeautify fi - - fuzz: - name: Fuzzing CBOR - needs: swiftlint - runs-on: macos-latest - steps: - - name: Checkout repository - uses: actions/checkout@v5 - - uses: swift-actions/setup-swift@v2 - with: - swift-version: "6.1" - name: Building Fuzzing Target run: | - set -o pipefail && swift build -c release --sanitize fuzzer,address | xcbeautify - - name: Fuzzing For 15 Seconds + if [ "$RUNNER_OS" == "Linux" ]; then + swift build -c release --sanitize fuzzer,address + else + set -o pipefail && swift build -c release --sanitize fuzzer,address | xcbeautify + fi + - name: Fuzzing For 30 Seconds run: | mkdir -p .fuzz mkdir -p .fuzz/new-corpus mkdir -p .fuzz/corpus mkdir -p .fuzz/artifacts - ./.build/release/Fuzzing .fuzz/new-corpus .fuzz/corpus -max_total_time=15 -artifact_prefix=.fuzz/artifacts -max_len=1000000 + ./.build/release/Fuzzing .fuzz/new-corpus .fuzz/corpus -max_total_time=10 -artifact_prefix=.fuzz/artifacts -max_len=1000000 - name: "Upload Fuzzing Artifacts (if available)" uses: actions/upload-artifact@v4 with: @@ -66,4 +59,3 @@ jobs: path: ".fuzz/artifacts" if-no-files-found: "ignore" retention-days: 14 - -- 2.51.2