Update ci.yml #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| make: | |
| name: make (ubuntu-latest) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Build with Makefile | |
| run: make clean && make | |
| - name: Run Makefile tests | |
| run: make test | |
| - name: Stage Makefile install | |
| run: make install DESTDIR="$RUNNER_TEMP/bfft-stage" PREFIX=/usr | |
| cmake: | |
| name: cmake (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| 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 | |
| - name: Build CMake targets | |
| run: cmake --build build-cmake --parallel | |
| - name: Run CMake tests | |
| run: ctest --test-dir build-cmake --output-on-failure | |
| - 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' |