ci: ubuntu 24.04 #38
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 | |
env: | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
CTEST_NO_TESTS_ACTION: error | |
CMAKE_BUILD_PARALLEL_LEVEL: 4 | |
CTEST_PARALLEL_LEVEL: 0 | |
on: | |
push: | |
paths: | |
- "**.f" | |
- "**.f90" | |
- "**/CMakeLists.txt" | |
- "**.cmake" | |
- ".github/workflows/ci.yml" | |
jobs: | |
unix: | |
strategy: | |
matrix: | |
shared: [true, false] | |
os: [ubuntu-24.04, macos-latest] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
env: | |
FC: gfortran-13 | |
CMAKE_INSTALL_PREFIX: ~/libs | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure | |
run: cmake --preset default -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }} | |
- name: Build | |
run: cmake --build --preset default | |
- name: Test | |
run: ctest --preset default | |
- name: Install | |
run: cmake --install build | |
windows: | |
timeout-minutes: 15 | |
runs-on: windows-latest | |
env: | |
CMAKE_GENERATOR: MinGW Makefiles | |
# shared always error 135 even on only shared. not a problem on real pc. | |
steps: | |
- uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
install: >- | |
mingw-w64-x86_64-gcc-fortran | |
- name: Put MSYS2_MinGW64 on PATH | |
run: echo "${{ runner.temp }}/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- uses: actions/checkout@v4 | |
- name: Configure | |
run: cmake --workflow --preset default |