mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-11-19 04:54:04 +01:00
Dev/win ci (#410)
Added CI (wheels + native build for Windows) closes #397 --------- Co-authored-by: Tomas Celko <tomas.celko@cvut.cz>
This commit is contained in:
1 parent
cdd8586f64
commit
fdc2d9499f
7 files changed
+49
-6
No files matched your search
@@ -17,7 +17,7 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest,macos-latest]
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
name: Build and test on Windows
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: python -m pip install ninja numpy matplotlib pytest pytest-check boost-histogram
|
||||
|
||||
# Puts cl.exe on the path so that CMake can use the Ninja generator
|
||||
- uses: ilammy/msvc-dev-cmd@v1
|
||||
|
||||
- name: Configure
|
||||
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DAARE_TESTS=ON -DAARE_PYTHON_BINDINGS=ON -DAARE_WARNINGS_AS_ERRORS=ON
|
||||
|
||||
- name: Build
|
||||
run: cmake --build build
|
||||
|
||||
- name: C++ unit tests
|
||||
run: ctest --test-dir build --output-on-failure -j4
|
||||
|
||||
- name: Python unit tests
|
||||
env:
|
||||
PYTHONPATH: ${{ github.workspace }}\build
|
||||
run: python -m pytest python/tests
|
||||
Reference in new issue
Block a user