tangled
alpha
login
or
join now
khanwinter.com
/
CBOR
2
fork
atom
A fast, safe, and efficient CBOR serialization library for Swift on any platform.
swiftpackageindex.com/thecoolwinter/CBOR/1.1.1/documentation/cbor
atproto
swift
cbor
2
fork
atom
overview
issues
pulls
pipelines
Don't Use xcbeautify on Linux
Khan Winter
6 months ago
ab87a98d
051fd937
+13
-3
1 changed file
expand all
collapse all
unified
split
.github
workflows
ci.yml
+13
-3
.github/workflows/ci.yml
···
32
32
with:
33
33
swift-version: "6.1"
34
34
- name: Testing Package
35
35
-
run: set -o pipefail && swift test | xcbeautify
35
35
+
run: |
36
36
+
if [ "$RUNNER_OS" == "Linux" ]; then
37
37
+
swift test
38
38
+
else
39
39
+
set -o pipefail && swift test | xcbeautify
40
40
+
fi
36
41
- name: Building Fuzzing Target
37
37
-
run: swift build -c release --sanitize fuzzer,address
42
42
+
run: |
43
43
+
if [ "$RUNNER_OS" == "Linux" ]; then
44
44
+
swift build -c release --sanitize fuzzer,address
45
45
+
else
46
46
+
set -o pipefail && swift build -c release --sanitize fuzzer,address | xcbeautify
47
47
+
fi
38
48
- name: Fuzzing For 30 Seconds
39
49
run: |
40
50
mkdir -p .fuzz
41
51
mkdir -p .fuzz/new-corpus
42
52
mkdir -p .fuzz/corpus
43
53
mkdir -p .fuzz/artifacts
44
44
-
./.build/release/Fuzzing .fuzz/new-corpus .fuzz/corpus -max_total_time=30 -artifact_prefix=.fuzz/artifacts -max_len=1000000
54
54
+
./.build/release/Fuzzing .fuzz/new-corpus .fuzz/corpus -max_total_time=10 -artifact_prefix=.fuzz/artifacts -max_len=1000000
45
55
- name: "Upload Fuzzing Artifacts (if available)"
46
56
uses: actions/upload-artifact@v4
47
57
with: