Skip to content

Commit 36498e6

Browse files
committed
add github actions build and test workflow
1 parent 127aae7 commit 36498e6

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and Test xtensor-fftw
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
- name: Set up micromamba
21+
uses: mamba-org/setup-micromamba@v1
22+
with:
23+
create-args: >-
24+
cmake
25+
fftw
26+
xtensor
27+
xtl
28+
29+
- name: Configure and build
30+
run: |
31+
mkdir build
32+
cd build
33+
cmake .. -DDOWNLOAD_GTEST=ON
34+
cmake --build test_xtensor-fftw
35+
36+
- name: Run tests
37+
run: |
38+
cd test
39+
./test_xtensor-fftw

0 commit comments

Comments
 (0)