toml11/.github/workflows/toml-test.yml

37 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2024-06-16 11:52:55 +00:00
name: toml-test
2024-06-16 11:45:30 +00:00
on: [push, pull_request]
jobs:
toml-test:
runs-on: Ubuntu-22.04
strategy:
matrix:
compiler: ['g++-12']
standard: ['11', '14', '17', '20']
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install
run: |
sudo apt update
sudo apt install -y ${{ matrix.compiler }}
- name: Setup Go
uses: actions/setup-go@v5
2024-06-16 11:45:30 +00:00
- name: Configure
run: |
2024-06-16 13:32:22 +00:00
cmake -B build/ -DBUILD_TESTING=OFF -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_BUILD_TOML_TESTS=ON
2024-06-16 11:45:30 +00:00
- name: Build
run: |
cmake --build build/
- name: Test
run: |
go install github.com/toml-lang/toml-test/cmd/toml-test@latest
toml-test ./build/tests/toml11_decoder
# skipped tests does not conform the latest commit in toml-lang/toml
2024-06-16 12:14:26 +00:00
toml-test -toml 1.1.0 ./build/tests/toml11_decoder_v1_1_0 -skip invalid/control/comment-del,invalid/control/comment-lf,invalid/control/comment-us
2024-06-16 12:19:48 +00:00
toml-test -encoder ./build/tests/toml11_encoder
2024-06-16 11:45:30 +00:00