-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (46 loc) · 1.5 KB
/
downstream.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
# This file is part of covfie, a part of the ACTS project
#
# Copyright (c) 2022 CERN
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
name: Downstream Build Tests
on: [ push, pull_request ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
linux-core:
name: "Linux"
runs-on: "ubuntu-latest"
container: ubuntu:24.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: apt-get update && apt-get -y install
libboost-filesystem-dev
libboost-program-options-dev
libboost-log-dev
wget
cmake
g++
- name: Configure covfie
run: cmake
-DCMAKE_BUILD_TYPE=${{ matrix.BUILD }}
-DCOVFIE_FAIL_ON_WARNINGS=TRUE
-DCMAKE_CXX_STANDARD=20
-S $GITHUB_WORKSPACE
-B build_covfie
- name: Build covfie
run: cmake --build build_covfie -- -j $(nproc)
- name: Install covfie
run: cmake --install build_covfie --prefix "$GITHUB_WORKSPACE/.prefixes/covfie/"
- name: Configure downstream
run: cmake
-DCMAKE_CXX_STANDARD=20
-DCMAKE_PREFIX_PATH="$GITHUB_WORKSPACE/.prefixes/covfie/"
-S $GITHUB_WORKSPACE/tests/downstream
-B build_downstream
- name: Build downstream
run: VERBOSE=1 cmake --build build_downstream -- -j $(nproc)