Skip to content

Commit 7453af0

Browse files
committed
add ci
1 parent 53c7e6a commit 7453af0

2 files changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: qdata-cpp
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
standalone:
14+
name: ${{ matrix.label }}
15+
runs-on: ${{ matrix.os }}
16+
timeout-minutes: 60
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
include:
21+
- os: ubuntu-latest
22+
label: Linux
23+
- os: macos-latest
24+
label: macOS
25+
- os: windows-latest
26+
label: Windows
27+
28+
defaults:
29+
run:
30+
shell: bash -el {0}
31+
32+
steps:
33+
- name: Check out repository
34+
uses: actions/checkout@v4
35+
36+
- name: Set up Conda environment
37+
uses: conda-incubator/setup-miniconda@v3
38+
with:
39+
activate-environment: qdata-cpp
40+
auto-activate-base: false
41+
channels: conda-forge
42+
channel-priority: strict
43+
environment-file: environment.yml
44+
45+
- name: Show toolchain
46+
run: |
47+
cmake --version
48+
ctest --version
49+
Rscript --version
50+
51+
- name: Configure
52+
run: >
53+
cmake -S . -B build -G Ninja
54+
-DQDATA_BUILD_BENCHMARKS=ON
55+
-DQDATA_BUILD_EXAMPLES=ON
56+
-DQDATA_BUILD_TESTS=ON
57+
58+
- name: Build
59+
run: cmake --build build --parallel
60+
61+
- name: Test
62+
env:
63+
QS_EXTENDED_TESTS: "1"
64+
run: ctest --test-dir build --output-on-failure -V

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ dependencies:
1010
- r-base
1111
- r-qs2
1212
- r-stringi
13+
- r-stringfish
1314
- tbb-devel
1415
- zstd

0 commit comments

Comments
 (0)