-
Notifications
You must be signed in to change notification settings - Fork 5
84 lines (74 loc) · 2.08 KB
/
cmake.yml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Build and Test
on:
push:
pull_request:
schedule:
- cron: "0 4 * * *"
env:
OTF2_VERSION: "3.0"
jobs:
build-ubuntu:
runs-on: ubuntu-20.04
strategy:
matrix:
compiler: [g++-9, g++-10, g++-11, clang++-10, clang++-11, clang++-12]
steps:
- uses: actions/checkout@v2
- name: Cache OTF2
id: cache-otf2
uses: actions/cache@v2
with:
path: /opt/otf2/
key: ${{ runner.os }}-otf2-${OTF2_VERSION}
- name: Install OTF2
if: steps.cache-otf2.outputs.cache-hit != 'true'
run: |
wget https://perftools.pages.jsc.fz-juelich.de/cicd/otf2/tags/otf2-${OTF2_VERSION}/otf2-${OTF2_VERSION}.tar.gz
tar -xf otf2-${OTF2_VERSION}.tar.gz
cd otf2-${OTF2_VERSION}
./configure --prefix=/opt/otf2
make -j2 install
- name: Install Dependencies
if: ${{ matrix.compiler }} == 'g++-11'
run: |
sudo apt-get update
sudo apt-get install g++-11 -y
- name: Run CMake configure
env:
CXX: ${{ matrix.compiler }}
run: cmake .
- name: Build
run: make
- name: Run CTest
run: ctest .
build-macos:
runs-on: macos-10.15
strategy:
matrix:
xcode: [10.3, 11.7, default]
steps:
- uses: actions/checkout@v2
- name: Cache OTF2
id: cache-otf2
uses: actions/cache@v2
with:
path: /opt/otf2/
key: ${{ runner.os }}-otf2-${OTF2_VERSION}
- name: Install OTF2
if: steps.cache-otf2.outputs.cache-hit != 'true'
run: |
wget https://perftools.pages.jsc.fz-juelich.de/cicd/otf2/tags/otf2-${OTF2_VERSION}/otf2-${OTF2_VERSION}.tar.gz
tar -xf otf2-${OTF2_VERSION}.tar.gz
cd otf2-${OTF2_VERSION}
./configure --prefix=/opt/otf2
make -j2
sudo make install
- name: Select XCode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
if: matrix.xcode != 'default'
- name: Run CMake configure
run: cmake .
- name: Build
run: make
- name: Run CTest
run: ctest .