Skip to content

Commit

Permalink
Merge pull request #1794 from ERGO-Code/cmake-readme
Browse files Browse the repository at this point in the history
Documentation updates
  • Loading branch information
galabovaa authored Jun 10, 2024
2 parents ec2399e + 53cf4a6 commit 2ac067f
Show file tree
Hide file tree
Showing 30 changed files with 1,036 additions and 486 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: build-wheels

on: [push]
# on: [pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -12,7 +13,7 @@ jobs:
runs-on: ${{ matrix.buildplat[0] }}
strategy:
# Ensure that a wheel builder finishes even if another fails
fail-fast: true
fail-fast: false
matrix:
# From NumPy
# Github Actions doesn't support pairing matrix values together, let's improvise
Expand Down
101 changes: 101 additions & 0 deletions .github/workflows/cmake-linux-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: cmake-linux-cpp

on: [push, pull_request]

jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE

- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --parallel

- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure

release_all_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake All
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Release -DALL_TESTS=ON

- name: Build All
working-directory: ${{runner.workspace}}/build
run: cmake --build . --parallel

- name: Test All
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure

debug:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug

- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --parallel

- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure

debug_all_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake All
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DALL_TESTS=ON

- name: Build All
working-directory: ${{runner.workspace}}/build
run: cmake --build . --parallel

- name: Test All
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure
101 changes: 101 additions & 0 deletions .github/workflows/cmake-macos-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: cmake-macos-cpp

on: [push, pull_request]

jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE

- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --parallel

- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure

release_all_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake All
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Release -DALL_TESTS=ON

- name: Build All
working-directory: ${{runner.workspace}}/build
run: cmake --build . --parallel

- name: Test All
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure

debug:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug

- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --parallel

- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure

debug_all_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake All
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DALL_TESTS=ON

- name: Build All
working-directory: ${{runner.workspace}}/build
run: cmake --build . --parallel

- name: Test All
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure
100 changes: 100 additions & 0 deletions .github/workflows/cmake-windows-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: cmake-windows-cpp

on: [push, pull_request]

jobs:
release:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE

- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config Release --parallel

- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest --timeout 300 --output-on-failure -C Release

release_all_tests:
runs-on: windows-2019

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake All
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DALL_TESTS=ON

- name: Build All
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --parallel --config Release

- name: Test All
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest --parallel --timeout 300 --output-on-failure -C Release

debug:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE

- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config Debug --parallel

- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest --output-on-failure -C Debug

debug_all_tests:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DALL_TESTS=ON

- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config Debug --parallel

- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest --output-on-failure -C Debug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test-csharp
name: test-csharp-win

on: [push, pull_request]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,27 @@ on: [push, pull_request]

jobs:
fast_build_release:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
toolchain:
- {compiler: gcc, version: 13}
# - {compiler: intel, version: '2023.2'}
# - {compiler: nvidia-hpc, version: '23.11'}
include:
- os: ubuntu-latest
toolchain: {compiler: gcc, version: 12}

steps:
- uses: actions/checkout@v4

- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

Expand Down
Loading

0 comments on commit 2ac067f

Please sign in to comment.