Readme correct and ci.yml #165
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
Linux: | |
name: build-linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Get latest CMake | |
uses: lukka/get-cmake@latest | |
- name: Installing Jinja2 | |
run: python -m pip install Jinja2 | |
- name: Installing pytest | |
run: python -m pip install pytest | |
- name: Running cmake (Linux) | |
run: | | |
ls ${{github.workspace}} | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Debug .. | |
- name: Build Solution (Linux) | |
run: | | |
cd build | |
make | |
- name: Testing (Linux) | |
run: | | |
cd build | |
ctest -C Debug --output-on-failure | |
Windows: | |
name: build-windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Get latest CMake | |
uses: lukka/get-cmake@latest | |
- name: Installing Jinja2 | |
run: python -m pip install Jinja2 | |
- name: List python modules | |
run: pip list | |
- name: Installing pytest | |
run: python -m pip install pytest | |
- name: Running cmake (Windows) | |
run: | | |
New-Item build -ItemType Directory | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Debug .. | |
- name: Build Solution (Windows) | |
run: | | |
cmake --build . | |
- name: Testing (Windows) | |
run: | | |
ctest -C Debug --output-on-failure | |