-
Notifications
You must be signed in to change notification settings - Fork 18
45 lines (38 loc) · 1.04 KB
/
build.yml
File metadata and controls
45 lines (38 loc) · 1.04 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
name: Build and Test xtensor-fftw
on:
push:
branches:
- main
pull_request:
defaults:
run:
shell: bash -e -l {0}
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-name: ci
init-shell: bash
create-args: >-
cmake
fftw
xtensor
xtl
- name: Configure and build
run: |
mkdir build
cd build
cmake .. -DDOWNLOAD_GTEST=ON
cmake --build test_xtensor-fftw
- name: Run tests
run: |
cd test
./test_xtensor-fftw