Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eliaskosunen committed Oct 28, 2024
1 parent c83b10b commit fc75ca4
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/arch.yml'
- 'cmake/**'
- 'include/**'
- 'src/**'
Expand All @@ -17,7 +17,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/arch.yml'
- 'cmake/**'
- 'include/**'
- 'src/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Coverage
on:
push:
paths:
- '.github/**'
- '.github/workflows/coverage.yml'
- 'cmake/**'
- 'include/**'
- 'scripts/**'
Expand All @@ -12,7 +12,7 @@ on:
- '**/CMakeLists.txt'
pull_request:
paths:
- '.github/**'
- '.github/workflows/coverage.yml'
- 'cmake/**'
- 'include/**'
- 'scripts/**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- "**.md"
- "docs/**"
- "**/docs.yml"
- '.github/**'
- '.github/workflows/docs.yml'
release:
types: [published]
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fuzz-continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- master
paths:
- '.github/**'
- '.github/workflows/fuzz-continuous.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fuzz-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 1200
fuzz-seconds: 86400
mode: 'prune'
output-sarif: true
storage-repo: https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/eliaskosunen/scnlib-fuzz-corpus.git
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/fuzz-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ name: ClusterFuzzLite PR fuzzing
on:
pull_request:
paths:
- '.github/**'
- 'benchmark/**'
- '.github/workflows/fuzz-pr.yml'
- 'cmake/**'
- 'examples/**'
- 'include/**'
- 'src/**'
- 'tests/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/linux.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand All @@ -19,7 +19,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/linux.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/lite.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand All @@ -19,7 +19,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/lite.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/macos.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand All @@ -19,7 +19,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/macos.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/windows.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand All @@ -19,7 +19,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/windows.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand Down
5 changes: 3 additions & 2 deletions cmake/charconv_compile_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,19 @@
// https://github.com/eliaskosunen/scnlib

#include <charconv>
#include <cstdio>
#include <string_view>

int main() {
std::string_view input("3.14");
double value{};
auto [ptr, ec] = std::from_chars(input.data(), input.data() + input.size(), value);
if (ec != std::errc{}) {
std::fprintf(stderr, "std::from_chars() failed with error code %d\n", ec);
std::fprintf(stderr, "std::from_chars failed with error code %d\n", static_cast<int>(ec));
return 1;
}
if (ptr != input.data() + input.size()) {
std::fprintf(stderr, "std::from_chars() failed with invalid pointer: %p, expected %p\n", ptr, input.data() + input.size());
std::fprintf(stderr, "std::from_chars failed with invalid pointer: %p, expected %p\n", ptr, input.data() + input.size());
return 1;
}
return 0;
Expand Down
1 change: 1 addition & 0 deletions include/scn/scan.h
Original file line number Diff line number Diff line change
Expand Up @@ -6713,6 +6713,7 @@ struct specs_setter {
{
m_specs.fill = fill;
}
template <bool Dependent = true>
constexpr void on_localized()
{
if constexpr (!SCN_DISABLE_LOCALE) {
Expand Down

0 comments on commit fc75ca4

Please sign in to comment.