From ab87a98d165fffc8a9aab7ab1a3627cb6034e7b2 Mon Sep 17 00:00:00 2001 From: Khan Winter <35942988+thecoolwinter@users.noreply.github.com> Date: Tue, 2 Sep 2025 22:23:04 -0500 Subject: [PATCH] Don't Use xcbeautify on Linux --- .github/workflows/ci.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d1456b..10492d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,16 +32,26 @@ jobs: with: swift-version: "6.1" - name: Testing Package - run: set -o pipefail && swift test | xcbeautify + run: | + if [ "$RUNNER_OS" == "Linux" ]; then + swift test + else + set -o pipefail && swift test | xcbeautify + fi - name: Building Fuzzing Target - run: swift build -c release --sanitize fuzzer,address + run: | + 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=30 -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: -- 2.51.2