Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Dec 29, 2023
1 parent 9641d52 commit 969d471
Showing 1 changed file with 18 additions and 35 deletions.
53 changes: 18 additions & 35 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
# See https://github.com/fortran-lang/setup-fortran?tab=readme-ov-file#runner-compatibility
# for the toolchains provided by fortran-lang/setup-fortran. We test the latest three on each OS.
# First define the toolchains on Linux and macOS.
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
toolchain:
- {compiler: gcc, version: 11, cflags: '-Wall -Wextra -Wpedantic -Werror', fflags: '-Wall -Wextra -Wpedantic -Werror -fimplicit-none -frecursive -fcheck=all -fstack-check -Wno-function-elimination', generator: 'Ninja'}
- {compiler: gcc, version: 12, cflags: '-Wall -Wextra -Wpedantic -Werror', fflags: '-Wall -Wextra -Wpedantic -Werror -fimplicit-none -frecursive -fcheck=all -fstack-check -Wno-function-elimination', generator: 'Ninja'}
Expand All @@ -42,41 +42,24 @@ jobs:
- {compiler: intel-classic, version: '2021.9', cflags: '-diag-disable=10441', fflags: '-warn all -debug extended -fimplicit-none -standard-semantics -assume recursion', generator: 'Ninja'}

include:
# intel compiler (ifx) does not support macOS. So they are not included above but below.
- os: ubuntu-latest
toolchain: {compiler: intel, version: '2023.0', cflags: '', fflags: '-warn all -debug extended -fimplicit-none -standard-semantics -assume recursion', generator: 'Ninja'}
- os: ubuntu-latest
toolchain: {compiler: intel, version: '2023.1', cflags: '', fflags: '-warn all -debug extended -fimplicit-none -standard-semantics -assume recursion', generator: 'Ninja'}
- os: ubuntu-latest
toolchain: {compiler: intel, version: '2023.2', cflags: '', fflags: '-warn all -debug extended -fimplicit-none -standard-semantics -assume recursion', generator: 'Ninja'}

# What follows contains the toolchains for Windows, including gcc, intel classic, and intel.
- os: windows-latest
toolchain: {compiler: gcc, version: 11, cflags: '-Wall -Wextra -Wpedantic -Werror', fflags: '-Wall -Wextra -Wpedantic -Werror -fimplicit-none -frecursive -fcheck=all -fstack-check -Wno-function-elimination', generator: 'Ninja'}
- os: windows-latest
toolchain: {compiler: gcc, version: 12, cflags: '-Wall -Wextra -Wpedantic -Werror', fflags: '-Wall -Wextra -Wpedantic -Werror -fimplicit-none -frecursive -fcheck=all -fstack-check -Wno-function-elimination', generator: 'Ninja'}
- os: windows-latest
toolchain: {compiler: gcc, version: 13, cflags: '-Wall -Wextra -Wpedantic -Werror', fflags: '-Wall -Wextra -Wpedantic -Werror -fimplicit-none -frecursive -fcheck=all -fstack-check -Wno-function-elimination', generator: 'Ninja'}
- os: windows-latest
toolchain: {compiler: intel, version: '2023.0', cflags: '', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', generator: 'Ninja'}
- os: windows-latest
toolchain: {compiler: intel, version: '2023.1', cflags: '', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', generator: 'Ninja'}
- os: windows-latest
toolchain: {compiler: intel, version: '2023.2', cflags: '', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', generator: 'Ninja'}
- os: windows-latest
toolchain: {compiler: intel, version: '2023.2', cflags: '', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', cc: cl, generator: 'Ninja'}
- os: windows-latest
toolchain: {compiler: intel, version: '2023.2', cflags: '', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', cc: cl, generator: 'Visual Studio 17 2022'}
- os: windows-latest
toolchain: {compiler: intel-classic, version: '2021.7', cflags: '/Qdiag-disable:10441', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', generator: 'Ninja'}
toolchain: {compiler: intel, version: '2023.2', cflags: '', fflags: '', cc: cl, generator: 'Visual Studio 17 2022'}
- os: windows-latest
toolchain: {compiler: intel-classic, version: '2021.8', cflags: '/Qdiag-disable:10441', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', generator: 'Ninja'}
- os: windows-latest
toolchain: {compiler: intel-classic, version: '2021.9', cflags: '/Qdiag-disable:10441', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', generator: 'Ninja'}
- os: windows-latest
toolchain: {compiler: intel-classic, version: '2021.9', cflags: '/Qdiag-disable:10441', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', cc: cl, generator: 'Ninja'}
- os: windows-latest
toolchain: {compiler: intel-classic, version: '2021.9', cflags: '', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', cc: cl, generator: 'Visual Studio 17 2022'}
toolchain: {compiler: intel, version: '2023.2', cflags: '', fflags: '', cc: cl, generator: 'NMake Makefiles'}

Check failure

Code scanning / check-spelling

Unrecognized Spelling Error

NMake is not a recognized word. (unrecognized-spelling)
# - os: windows-latest
# toolchain: {compiler: intel-classic, version: '2021.7', cflags: '/Qdiag-disable:10441', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', generator: 'Ninja'}
# - os: windows-latest
# toolchain: {compiler: intel-classic, version: '2021.8', cflags: '/Qdiag-disable:10441', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', generator: 'Ninja'}
# - os: windows-latest
# toolchain: {compiler: intel-classic, version: '2021.9', cflags: '/Qdiag-disable:10441', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', generator: 'Ninja'}
# - os: windows-latest
# toolchain: {compiler: intel-classic, version: '2021.9', cflags: '/Qdiag-disable:10441', fflags: '/warn:all /debug:extended /Z7 /fimplicit-none /standard-semantics /assume:recursion', cc: cl, generator: 'Ninja'}
# - os: windows-latest
# toolchain: {compiler: intel-classic, version: '2021.9', cflags: '', fflags: '', cc: cl, generator: 'Visual Studio 17 2022'}

steps:

Expand Down Expand Up @@ -140,11 +123,11 @@ jobs:
echo "FC=${FC}"
echo "CC=${CC}"
cmake --version
cmake -G "${{ matrix.toolchain.generator }}" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=. -LAH -DCMAKE_C_FLAGS="${{ matrix.toolchain.cflags }}" -DCMAKE_Fortran_FLAGS="${{ matrix.toolchain.fflags }}" . || ls -l .
ls -l ./CMakeFiles
cat ./CMakeFiles/CMakeConfigureLog.yaml
cmake --build . --target install
cmake --build . --target tests
cmake -G "${{ matrix.toolchain.generator }}" -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=. -LAH -DCMAKE_C_FLAGS="${{ matrix.toolchain.cflags }}" -DCMAKE_Fortran_FLAGS="${{ matrix.toolchain.fflags }}" -B build || ls -l build
ls -l build/CMakeFiles
cat build/CMakeFiles/CMakeConfigureLog.yaml
cmake --build build --target install
cmake --build build --target tests
ctest --output-on-failure -V -E stress
env:
FC: ${{ steps.setup-fortran.outputs.fc }}
Expand Down

0 comments on commit 969d471

Please sign in to comment.