mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-09-13 06:02:24 +08:00
Replace C-style casts with static_cast/const_cast so -Wold-style-cast is clean, and enable that warning in the Unix test builds and the amalgamated-header CI job.
18 lines
465 B
YAML
18 lines
465 B
YAML
name: Amalgamate Ubuntu 24.04 CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
ubuntu-build:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: Compile with amalgamation
|
|
run: |
|
|
mkdir build &&
|
|
mkdir build/fast_float &&
|
|
python3 ./script/amalgamate.py > build/fast_float/fast_float.h &&
|
|
cp tests/string_test.cpp build/ &&
|
|
cd build &&
|
|
g++ -Werror=old-style-cast string_test.cpp
|