forked from ct-clmsn/chplx
-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (44 loc) · 1.35 KB
/
linux-build.yml
File metadata and controls
55 lines (44 loc) · 1.35 KB
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
# Copyright (c) 2023 Hartmut Kaiser
#
# SPDX-License-Identifier: BSL-1.0
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
name: Linux CI (Debug)
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: CCache
uses: hendrikmuhs/ccache-action@v1.2.11
with:
key: ubuntu-latest-linux
- name: Install llvm, clang 17
shell: bash
run: |
sudo apt purge llvm-16 clang-16 llvm-17 llvm-18 clang-17 clang-18 -y || true
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17
sudo apt install libclang-17-dev ccache -y
- name: Build ChplX Debug
shell: bash
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug \
-DCHPL_HOME=$(realpath ../extern/chapel) \
-DHPX_WITH_FETCH_BOOST=ON
JOBS=$(( $(nproc) / 2 ))
make -j$JOBS
sudo make install
make -j$JOBS tests.unit.backend_dir tests.unit.library_dir
- name: CTest
shell: bash
run: |
cd build && ctest --output-on-failure