Skip to content

Commit 66cf726

Browse files
committed
Fix portable C++ CI prerequisites
1 parent 5fa2c8e commit 66cf726

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
run: |
3131
sudo apt-get update
3232
sudo apt-get install --yes clang libssl-dev pkg-config
33+
- name: Fetch and verify the pinned conformance corpus
34+
working-directory: credbind-cpp
35+
run: make fixtures test-fixtures
3336
- name: Run strict deterministic and sanitizer gates
3437
working-directory: credbind-cpp
3538
env:
@@ -53,6 +56,9 @@ jobs:
5356
path: credbind-cpp
5457
- name: Select Homebrew OpenSSL 3
5558
run: echo "PKG_CONFIG_PATH=$(brew --prefix openssl@3)/lib/pkgconfig" >> "$GITHUB_ENV"
59+
- name: Fetch and verify the pinned conformance corpus
60+
working-directory: credbind-cpp
61+
run: make fixtures test-fixtures
5662
- name: Run strict, sanitizer and fuzz gates
5763
working-directory: credbind-cpp
5864
run: make check test-readme test-sanitize test-fuzz-smoke

tests/unit/parsers_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ void test_core_envelope() {
749749
parsed->caller_signature.signature == "AA" && parsed->evidence == "AA",
750750
"strict core envelope parse failed");
751751

752-
for (const std::string& input : {
752+
for (const char* const input : {
753753
R"({"payload":"AA","payload":"AA","signatures":[{"protected":"AA","signature":"AA"}],"credbind_evidence":"AA"})",
754754
R"({"payload":"AA","\u0070ayload":"AA","signatures":[{"protected":"AA","signature":"AA"}],"credbind_evidence":"AA"})",
755755
R"({"payload":"AA","signatures":[{"protected":"AA","signature":"AA"}],"credbind_evidence":"AA"} [])",

0 commit comments

Comments
 (0)