-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (44 loc) · 1.34 KB
/
gyselalibxx.yaml
File metadata and controls
53 lines (44 loc) · 1.34 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
53
# Copyright (C) The DDC development team, see COPYRIGHT.md file
#
# SPDX-License-Identifier: MIT
---
name: gyselalibxx
# yamllint disable-line rule:truthy
on:
workflow_dispatch
permissions:
contents: read
jobs:
tests:
strategy:
fail-fast: false
matrix:
cmake_build_type: ['Debug', 'Release']
runs-on: ubuntu-latest
steps:
- name: Checkout gyselalibxx
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: gyselax/gyselalibxx
submodules: true
- name: Checkout ddc
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: vendor/ddc
submodules: true
- name: Build
run: |
cat<<-EOF > run.sh
set -xe
git config --global --add safe.directory '*'
export CMAKE_BUILD_PARALLEL_LEVEL=4
export CMAKE_BUILD_TYPE=${{matrix.cmake_build_type}}
cmake \
-D GYSELALIBXX_DEFAULT_CXX_FLAGS="" \
-B build \
-S /src
cmake --build build
ctest --test-dir build --output-on-failure --timeout 5 -LE test_on_Release_only
EOF
docker run -v ${PWD}:/src:ro ghcr.io/gyselax/gyselalibxx_env bash /src/run.sh
continue-on-error: true