diff --git a/.github/workflows/macos-apple-clang.yml b/.github/workflows/macos-apple-clang.yml new file mode 100644 index 0000000..40ae04b --- /dev/null +++ b/.github/workflows/macos-apple-clang.yml @@ -0,0 +1,55 @@ +name: macos-apple-clang-ci + +on: + workflow_dispatch: + + push: + branches: + - master + - feature/** + - improvement/** + - bugfix/** + + pull_request: + branches: + - master + - feature/** + - improvement/** + - bugfix/** + +jobs: + clang_tests: + if: >- + ! contains(toJSON(github.event.commits.*.message), '[skip ci]') && + ! contains(toJSON(github.event.commits.*.message), '[skip github]') + + strategy: + matrix: + xcode: ['13.4.1', '14.1'] + type: [Release, Debug] + + runs-on: macos-12 + + env: + DEVELOPER_DIR: /Applications/Xcode_${{matrix.xcode}}.app/Contents/Developer + + name: "Xcode ${{matrix.xcode}}: ${{matrix.type}}" + + steps: + - uses: actions/checkout@v3 + + - uses: friendlyanon/fetch-core-count@v1 + id: cores + + - name: Install dependencies + run: script/ci_install_deps.sh + + - name: Configure + run: cmake -S test -B build -DCMAKE_BUILD_TYPE=${{matrix.type}} + + - name: Build + run: cmake --build build -j ${{steps.cores.outputs.count}} + + - name: Run + working-directory: build + run: ctest --output-on-failure diff --git a/README.md b/README.md index 6f00e9c..bbdb74f 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ [![windows-msys2-gcc](https://github.com/red0124/ssp/workflows/win-msys2-gcc-ci/badge.svg)](https://github.com/red0124/ssp/actions/workflows/win-msys2-gcc.yml) [![windows-msys2-clang](https://github.com/red0124/ssp/workflows/win-msys2-clang-ci/badge.svg)](https://github.com/red0124/ssp/actions/workflows/win-msys2-clang.yml) [![windows-msvc](https://github.com/red0124/ssp/workflows/win-msvc-ci/badge.svg)](https://github.com/red0124/ssp/actions/workflows/win-msvc.yml) +[![macos-apple-clang](https://github.com/red0124/ssp/workflows/macos-apple-clang-ci/badge.svg)](https://github.com/red0124/ssp/actions/workflows/macos-apple-clang.yml) A header only CSV parser which is fast and versatile with modern C++ API. Requires compiler with C++17 support. [Can also be used to efficiently convert strings to specific types.](#the-converter)