Skip to content

Update bfft.h

Update bfft.h #196

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
make:
name: make ${{ matrix.cxx-standard }} (ubuntu-latest)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cxx-standard: [c++23]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build with Makefile
run: make clean && make CXX_STD=${{ matrix.cxx-standard }}
- name: Run Makefile tests
run: make test CXX_STD=${{ matrix.cxx-standard }}
- name: Stage Makefile install
run: make install CXX_STD=${{ matrix.cxx-standard }} DESTDIR="$RUNNER_TEMP/bfft-stage" PREFIX=/usr
cmake:
name: cmake C++${{ matrix.cxx-standard }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
cxx-standard: [23]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Configure CMake
run: cmake -S . -B build-cmake -DBFFT_BUILD_PROBES=OFF -DBFFT_BUILD_SHARED=OFF -DCMAKE_CXX_STANDARD=${{ matrix.cxx-standard }} -DCMAKE_CXX_EXTENSIONS=OFF
- name: Build CMake targets
run: cmake --build build-cmake --config Release --parallel
- name: Run CMake tests
run: ctest --test-dir build-cmake -C Release --output-on-failure
- name: Build installable CMake target
run: cmake --build build-cmake --config Release --target bfft_static --parallel
- name: Stage CMake install
run: cmake --install build-cmake --config Release --prefix "$env:RUNNER_TEMP/bfft-cmake-stage/usr"
if: runner.os == 'Windows'
- name: Stage CMake install
run: cmake --install build-cmake --config Release --prefix "$RUNNER_TEMP/bfft-cmake-stage/usr"
if: runner.os != 'Windows'