We approved P3936R1 at the WG21 meeting last month #371
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Verify data" | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| yamllint: | |
| name: "YAML lint" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout" | |
| uses: actions/checkout@v4 | |
| - name: "YAML lint" | |
| uses: karancode/yamllint-github-action@master | |
| with: | |
| yamllint_file_or_dir: "*.yaml" | |
| yamllint_strict: false | |
| yamllint_comment: false | |
| - name: "Cache apt packages" | |
| uses: awalsh128/cache-apt-pkgs-action@latest | |
| with: | |
| packages: g++-14 libyaml-cpp-dev nlohmann-json3-dev | |
| version: 1.0 | |
| - name: "Cache validator binary and dependencies" | |
| id: cache-validator | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| validate_yaml_file | |
| json-schema-validator | |
| key: validator-${{ hashFiles('validate_yaml_file.cpp') }}-v1 | |
| - name: "Fetch json-schema-validator" | |
| if: steps.cache-validator.outputs.cache-hit != 'true' | |
| run: | | |
| rm -rf json-schema-validator | |
| git clone --depth 1 https://github.com/pboettch/json-schema-validator.git json-schema-validator | |
| - name: "Build YAML validator" | |
| if: steps.cache-validator.outputs.cache-hit != 'true' | |
| run: | | |
| g++-14 -std=c++23 -O3 -Wall -Wextra \ | |
| $(pkg-config --cflags yaml-cpp) \ | |
| $(pkg-config --cflags nlohmann_json) \ | |
| -Ijson-schema-validator/src \ | |
| -o validate_yaml_file \ | |
| validate_yaml_file.cpp \ | |
| json-schema-validator/src/json-uri.cpp \ | |
| json-schema-validator/src/json-validator.cpp \ | |
| json-schema-validator/src/json-schema-draft7.json.cpp \ | |
| json-schema-validator/src/json-patch.cpp \ | |
| $(pkg-config --libs yaml-cpp) | |
| - name: "Validate feature files" | |
| run: | | |
| for file in features_c*.yaml; do | |
| echo "Verifying: $file" | |
| ./validate_yaml_file "$file" | |
| done |