use env var CMAKE_TLS_VERIFY #207
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: | |
paths: | |
- "**.cmake" | |
- "**/CMakeLists.txt" | |
- ".github/workflows/ci.yml" | |
jobs: | |
core: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-24.04, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Ninja | |
run: cmake -Dprefix:PATH=~/ninja -P scripts/install_ninja.cmake | |
- name: Install CMake | |
run: cmake -Dprefix:PATH=~/cmake -P scripts/install_cmake.cmake | |
- name: CMake path (linux) | |
if: runner.os == 'Linux' | |
run: echo "$HOME/ninja:$HOME/cmake/bin" >> $GITHUB_PATH | |
- name: CMake path (macOS) | |
if: runner.os == 'macOS' | |
run: echo "$HOME/ninja:$HOME/cmake/CMake.app/Contents/bin" >> $GITHUB_PATH | |
- name: CMake path (Windows) | |
if: runner.os == 'Windows' | |
run: echo "$env:userprofile/ninja;$env:userprofile/cmake/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- run: echo $PATH | |
- run: cmake --version | |
- run: ninja --version | |
- name: configure cmake (w/ Fortran) | |
if: runner.os != 'Windows' | |
run: cmake -G Ninja --preset default | |
env: | |
FC: gfortran-13 | |
- name: configure CMake (w/o Fortran) | |
if: runner.os == 'Windows' | |
run: cmake -G Ninja -Dfortran=no --preset default | |
- run: cmake --build --preset release | |
- run: ctest --preset release |