-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (42 loc) · 1.22 KB
/
gyselalibxx.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
# Copyright (C) The DDC development team, see COPYRIGHT.md file
#
# SPDX-License-Identifier: MIT
name: gyselalibxx
on: workflow_dispatch
jobs:
tests:
strategy:
fail-fast: false
matrix:
cmake_build_type: ['Debug', 'Release']
runs-on: ubuntu-latest
steps:
- name: Checkout gyselalibxx
uses: actions/checkout@v4
with:
repository: gyselax/gyselalibxx
submodules: true
- name: rm ddc
run: rm -rf vendor/ddc
- name: Checkout ddc
uses: actions/checkout@v4
with:
submodules: true
path: vendor/ddc
- name: Build
run: |
cat<<-EOF > run.sh
set -xe
cd /src
git config --global --add safe.directory '*'
export CMAKE_BUILD_PARALLEL_LEVEL=4
export CMAKE_BUILD_TYPE=${{matrix.cmake_build_type}}
cmake \
-DGYSELALIBXX_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 --user $(id -u):$(id -g) -v ${PWD}:/src:rw ghcr.io/gyselax/gyselalibxx_env bash /src/run.sh
continue-on-error: true