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
Final CI Update?
Khan Winter
6 months ago
5194083d
3d78a91f
+21
-17
1 changed file
expand all
collapse all
unified
split
.github
workflows
ci.yml
+21
-17
.github/workflows/ci.yml
···
65
65
key: "swiftpm-tests-build-${{ runner.os }}-${{ github.event.pull_request.base.sha || github.event.after }}"
66
66
restore-keys: "swiftpm-tests-build-${{ runner.os }}-"
67
67
- name: Building Package
68
68
-
run: set -o pipefail && swift --run swift build --build-tests --sanitize fuzzer | xcbeautify
68
68
+
run: set -o pipefail && swift build --build-tests | xcbeautify
69
69
+
# run: set -o pipefail && swift build --build-tests // --sanitize fuzzer | xcbeautify
69
70
- name: Cache .build
70
71
if: steps.restore-build.outputs.cache-hit != 'true'
71
72
uses: actions/cache/save@v4
72
73
with:
73
74
path: .build
74
75
key: "swiftpm-tests-build-${{ runner.os }}-${{ github.event.pull_request.base.sha || github.event.after }}"
75
75
-
- name: Testing Package
76
76
-
run: set -o pipefail && swift --run swift test --skip-build | xcbeautify
77
77
-
- name: Fuzzing For 15 Seconds
78
78
-
run: |
79
79
-
mkdir -p .fuzz
80
80
-
mkdir -p .fuzz/new-corpus
81
81
-
mkdir -p .fuzz/corpus
82
82
-
mkdir -p .fuzz/artifacts
83
83
-
./.build/debug/Fuzzing .fuzz/new-corpus .fuzz/corpus -max_total_time=15 -artifact_prefix=.fuzz/artifacts -max_len=1000000
84
84
-
- name: "Upload Fuzzing Artifacts (if available)"
85
85
-
uses: actions/upload-artifact@v4
86
86
-
with:
87
87
-
name: "FuzzArtifacts"
88
88
-
path: ".fuzz/artifacts"
89
89
-
if-no-files-found: "ignore"
90
90
-
retention-days: 14
76
76
+
77
77
+
# TODO: The Xcode version of the swift toolchain does not come with libfuzzer
78
78
+
# What needs to happen is we install the open source toolchain and then we can fuzz here...
79
79
+
# - name: Testing Package
80
80
+
# run: set -o pipefail && swift test --skip-build | xcbeautify
81
81
+
# - name: Fuzzing For 15 Seconds
82
82
+
# run: |
83
83
+
# mkdir -p .fuzz
84
84
+
# mkdir -p .fuzz/new-corpus
85
85
+
# mkdir -p .fuzz/corpus
86
86
+
# mkdir -p .fuzz/artifacts
87
87
+
# ./.build/debug/Fuzzing .fuzz/new-corpus .fuzz/corpus -max_total_time=15 -artifact_prefix=.fuzz/artifacts -max_len=1000000
88
88
+
# - name: "Upload Fuzzing Artifacts (if available)"
89
89
+
# uses: actions/upload-artifact@v4
90
90
+
# with:
91
91
+
# name: "FuzzArtifacts"
92
92
+
# path: ".fuzz/artifacts"
93
93
+
# if-no-files-found: "ignore"
94
94
+
# retention-days: 14