Skip to content

Commit f60db31

Browse files
authored
Merge pull request #68 from xtensor-stack/copilot/migrate-ci-to-github-actions
Migrate project CI from Travis/AppVeyor to GitHub Actions
2 parents 127aae7 + e1c703d commit f60db31

5 files changed

Lines changed: 81 additions & 267 deletions

File tree

‎.appveyor.yml‎

Lines changed: 0 additions & 51 deletions
This file was deleted.

‎.github/workflows/main.yml‎

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: CI
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches: [master]
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
permissions:
11+
contents: read
12+
defaults:
13+
run:
14+
shell: bash -e -l {0}
15+
jobs:
16+
build-and-test:
17+
runs-on: ${{ matrix.os }}
18+
name: ${{ matrix.name }}
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
include:
23+
- os: ubuntu-latest
24+
name: Linux
25+
extra-cmake-args: ""
26+
- os: ubuntu-latest
27+
name: Linux (no exceptions)
28+
extra-cmake-args: "-DDISABLE_EXCEPTIONS=ON"
29+
- os: macos-latest
30+
name: macOS arm
31+
extra-cmake-args: ""
32+
- os: macos-26-intel
33+
name: macOS intel
34+
extra-cmake-args: ""
35+
- os: windows-latest
36+
name: Windows
37+
extra-cmake-args: "-DCMAKE_BUILD_TYPE=Release"
38+
39+
steps:
40+
- name: Setup MSVC
41+
if: matrix.os == 'windows-latest'
42+
uses: ilammy/msvc-dev-cmd@v1
43+
44+
- name: Checkout code
45+
uses: actions/checkout@v7
46+
47+
- name: Set conda environment
48+
uses: mamba-org/setup-micromamba@v3
49+
with:
50+
environment-name: xtensor-fftw
51+
init-shell: bash
52+
cache-downloads: true
53+
condarc: |
54+
channels:
55+
- conda-forge
56+
channel_priority: strict
57+
create-args: >-
58+
cmake
59+
ninja
60+
xtl
61+
xtensor
62+
fftw
63+
gtest
64+
65+
- name: Configure using CMake
66+
run: cmake -G Ninja -Bbuild -DBUILD_TESTS=ON -DCMAKE_PREFIX_PATH=$CONDA_PREFIX ${{ matrix.extra-cmake-args }}
67+
68+
- name: Build
69+
working-directory: build
70+
run: cmake --build . --target test_xtensor-fftw --parallel 2
71+
72+
- name: Run tests (Unix)
73+
if: matrix.os != 'windows-latest'
74+
working-directory: build/test
75+
run: ./test_xtensor-fftw
76+
77+
- name: Run tests (Windows)
78+
if: matrix.os == 'windows-latest'
79+
working-directory: build/test
80+
run: ./test_xtensor-fftw.exe

‎.travis.yml‎

Lines changed: 0 additions & 185 deletions
This file was deleted.

‎README.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/xtensor-stack/xtensor-fftw/stable?filepath=notebooks%2Fintensely_edgy_cat.ipynb)
66
[![Join the Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/QuantStack/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
77

8-
[![Travis](https://travis-ci.org/xtensor-stack/xtensor-fftw.svg?branch=master)](https://travis-ci.org/xtensor-stack/xtensor-fftw)
9-
[![Appveyor](https://ci.appveyor.com/api/projects/status/6h369haechmjeofj/branch/master?svg=true)](https://ci.appveyor.com/project/egpbos/xtensor-fftw-ivn9w/branch/master)
8+
[![CI](https://github.com/xtensor-stack/xtensor-fftw/actions/workflows/main.yml/badge.svg)](https://github.com/xtensor-stack/xtensor-fftw/actions/workflows/main.yml)
109
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/18861a283cf84b2e95886ba79c66e028)](https://www.codacy.com/app/egpbos/xtensor-fftw?utm_source=github.com&utm_medium=referral&utm_content=egpbos/xtensor-fftw&utm_campaign=Badge_Grade)
1110
[![Coverage Status](https://coveralls.io/repos/github/egpbos/xtensor-fftw/badge.svg)](https://coveralls.io/github/egpbos/xtensor-fftw)
1211

‎appveyor_install_fftw.ps1‎

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)