-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (59 loc) · 1.69 KB
/
linux.yml
File metadata and controls
70 lines (59 loc) · 1.69 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Linux CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
linux:
name: Ubuntu (${{ matrix.label }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- label: TBB ON
qdata_use_tbb: "ON"
- label: TBB OFF
qdata_use_tbb: "OFF"
defaults:
run:
shell: bash
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y ninja-build pkg-config libzstd-dev libtbb-dev libicu-dev
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install R test packages
run: |
Rscript -e "install.packages(c('qs2', 'stringi', 'stringfish'), Ncpus = max(1L, parallel::detectCores()))"
Rscript -e "pkgs <- c('qs2', 'stringi', 'stringfish'); stopifnot(all(vapply(pkgs, requireNamespace, logical(1), quietly = TRUE)))"
- name: Show toolchain
run: |
cmake --version
ninja --version
ctest --version
c++ --version
Rscript --version
- name: Configure
run: |
cmake -S . -B build -G Ninja \
-DQDATA_USE_TBB=${{ matrix.qdata_use_tbb }} \
-DQDATA_BUILD_BENCHMARKS=ON \
-DQDATA_BUILD_EXAMPLES=ON \
-DQDATA_BUILD_TESTS=ON
- name: Build
run: cmake --build build --parallel
- name: Test
env:
QS_EXTENDED_TESTS: "1"
run: ctest --test-dir build --output-on-failure -V