Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readded build on Windows #1037

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/ci_build_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build on Windows

on: [push]

jobs:
msvc:
name: Build dlite with MS Visual Studio
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [windows-2019, windows-latest]
#python-version: [ '3.8', '3.9' ]
os: [windows-2019]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- name: Fetch Sources
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Python Dependencies
run: pip install -r requirements.txt

- name: Install SWIG
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install swig -y

- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.9
with:
cmake-version: '3.20.x'

- name: Prepare MSVC
uses: bus1/cabuild/action/msdevshell@v1

- name: Make build folder
run: mkdir build

- name: Check for NumPy
run: python -c "import numpy; print(numpy.get_include())"

- name: Use cmake
run: cmake -A x64 -DWITH_DOC=OFF -DWITH_HDF5=OFF -DCMAKE_CONFIGURATION_TYPES:STRING="Release" ..
working-directory: build

- name: Build
run: cmake --build . --config Release
working-directory: build

- name: Check dlite config settings
run: cmake --build . --config Release --target show
working-directory: build

- name: Test
run: ctest -C Release --rerun-failed --output-on-failure -V
working-directory: build
Loading