Skip to content

Commit

Permalink
ci: add gcc 13
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Mar 31, 2024
1 parent 8416454 commit 299c02a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: ci_cmake

env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
CMAKE_BUILD_PARALLEL_LEVEL: 4
CTEST_PARALLEL_LEVEL: 0
CTEST_NO_TESTS_ACTION: error

on:
push:
Expand All @@ -22,23 +25,23 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
gcc_version: [9, 10, 11, 12]
gcc_version: [9, 10, 11, 12, 13]
include:
- os: macos-latest
gcc_version: 12
gcc_version: 13

env:
FC: gfortran-${{ matrix.gcc_version }}

steps:
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: install pytest
run: python -m pip install numpy scipy pytest

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: cmake --workflow --preset default

Expand All @@ -47,32 +50,31 @@ jobs:
runs-on: windows-latest
timeout-minutes: 15
env:
CMAKE_GENERATOR: Ninja
CMAKE_GENERATOR: "MinGW Makefiles"

steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-x86_64-ninja
mingw-w64-x86_64-gcc-fortran
- name: Put MSYS2_MinGW64 on PATH
run: echo "D:/a/_temp/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: install pytest
run: python -m pip install numpy scipy pytest

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: cmake --workflow --preset default

- name: .exe for release
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success()
with:
name: rpncalc.exe
Expand Down

0 comments on commit 299c02a

Please sign in to comment.