-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (35 loc) · 1.47 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
name: Build
on: [push, pull_request]
env:
OTF2_VERSION: "3.0"
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04]
compiler: [g++-12, g++-13, g++-14, clang++-16, clang++-17, clang++-18]
build-type: [Debug, RelWithDebInfo]
hw_breakpoint: [ON, OFF]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install binutils-dev libiberty-dev libsensors-dev libpfm4-dev libaudit-dev libcupti-dev nvidia-cuda-toolkit nvidia-cuda-dev libradare2-dev libotf2-trace-dev otf2-tools
sudo pip install git-archive-all
- name: Run CMake configure
env:
CXX: ${{ matrix.compiler }}
run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -DUSE_HW_BREAKPOINT_COMPAT=${{ matrix.hw_breakpoint }}}
- name: Build
run: make -j 2
- name: Create source tarball
if: ${{ matrix.compiler == 'g++-12' && matrix.os == 'ubuntu-24.04' && matrix.build-type == 'RelWithDebInfo' && matrix.hw_breakpoint == 'ON' && github.event_name != 'pull_request'}}
run: make dist
- uses: actions/upload-artifact@v4
if: ${{ matrix.compiler == 'g++-12' && matrix.os == 'ubuntu-24.04' && matrix.build-type == 'RelWithDebInfo' && matrix.hw_breakpoint == 'ON' && github.event_name != 'pull_request'}}
with:
overwrite: true
path: lo2s*.tar.bz2