-
-
Notifications
You must be signed in to change notification settings - Fork 5
65 lines (57 loc) · 1.58 KB
/
linux-nvfortran-cmake.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: linux-nvidia-hpc-cmake
on:
push:
branches:
- master
- main
paths-ignore:
- 'AUTHORS.md'
- 'LICENSE.md'
- 'README.md'
pull_request:
paths-ignore:
- 'AUTHORS.md'
- 'LICENSE.md'
- 'README.md'
jobs:
linux-tests:
timeout-minutes: 20
if: "!contains(github.event.head_commit.message, 'skip ci')"
name: ${{ matrix.os }} - ${{ matrix.toolchain.compiler }} - ${{ matrix.build_type }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
toolchain:
- {compiler: nvidia-hpc, version: '23.11'}
include:
- os: ubuntu-22.04
shell: bash
build_type: debug
toolchain: {compiler: nvidia-hpc, version: '23.11'}
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}
- name: Show version information
run: |
${{ env.FC }} --version
${{ env.CC }} --version
- name: Build with Cmake
run: |
export PATH=${PATH}:/opt/rocm/bin
mkdir build
cd build
FC=${{ env.FC }} CC=${{ env.CC }} cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ../
make VERBOSE=1
- name: Run ctests
run: |
cd build/test
ctest || ctest --rerun-failed --output-on-failure