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

Enable visual studio builds #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
47 changes: 31 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,37 @@ on:
- master

jobs:
# disable visual studio build until the exported symbols problem is fixed once and for all
# visual-studio:
# timeout-minutes: 60
# runs-on: windows-latest

# steps:
# - uses: actions/checkout@v2
# - name: Setup python
# uses: actions/setup-python@v1
# with:
# python-version: 3.8
# - uses: ilammy/msvc-dev-cmd@v1
# - uses: BSFishy/[email protected]
# with:
# action: test
# setup-options: -Dwith-fortran=false
visual-studio:
timeout-minutes: 60
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
compiler:
- cl
- clang-cl
- clang
name: Visual Studio with ${{matrix.compiler}} and Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/[email protected]
with:
auto-update-conda: true
channels: conda-forge
python-version: ${{ matrix.python-version }}
- name: Install meson, ninja, numpy and cython
run: |
conda install -q -y meson ninja clang m2w64-gcc-fortran
- uses: ilammy/[email protected]
- name: Build with meson
run: |
meson setup meson-build --buildtype=release -Dwith-fortran=true
meson compile -C meson-build
meson test -C meson-build
# ninja -v -C meson-build dist
env:
CC: ${{ matrix.compiler }}
CXX: ${{ matrix.compiler }}

macos:
timeout-minutes: 60
Expand Down