This repository has been archived by the owner on Jan 15, 2025. It is now read-only.
(PA-4644) Replace appveyor with github actions #64
Workflow file for this run
This file contains 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: CI Checks | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
ci_checks: | |
strategy: | |
fail-fast: false | |
matrix: | |
options: | |
- make_command: cpplint | |
cmake_extra_vars: -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2 | |
- make_command: cppcheck | |
- make_command: all test install ARGS=-v | |
cmake_extra_vars: -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=ON -DENABLE_CXX_WERROR=OFF | |
coveralls: ON | |
- make_command: all test install ARGS=-v | |
cmake_extra_vars: -DLEATHERMAN_USE_LOCALES=OFF -DENABLE_CXX_WERROR=OFF | |
- make_command: all test install ARGS=-v | |
cmake_extra_vars: -DLEATHERMAN_GETTEXT=OFF -DENABLE_CXX_WERROR=OFF | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout current pr | |
uses: actions/checkout@v4 | |
- name: run CMake and Make on Linux | |
uses: ./.github/actions/run_cmake_and_make | |
with: | |
cmake_extra_vars: ${{ matrix.options.cmake_extra_vars }} | |
make_command: ${{ matrix.options.make_command }} | |
coveralls: ${{ matrix.options.coveralls }} | |
win_ci_checks: | |
strategy: | |
fail-fast: false | |
runs-on: windows-latest | |
steps: | |
- name: checkout current pr | |
uses: actions/checkout@v4 | |
- name: run CMake and Make on Windows | |
uses: ./.github/actions/run_win_cmake_and_make |