Skip to content

Commit

Permalink
Migrated Windows build to appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMabille committed Jul 4, 2023
1 parent 99ec219 commit 2939124
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 39 deletions.
37 changes: 0 additions & 37 deletions .appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set conda environment
- name: Set mamba environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-dev.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set conda environment
- name: Set mamba environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-dev.yml
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Windows
on:
workflow_dispatch:
pull_request:
push:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: 'MSVC ${{ matrix.os }}'
defaults:
run:
shell: bash {0}
strategy:
matrix:
os:
- 2019
- 2022
runs-on: windows-${{ matrix.os }}

steps:
- name: Setup compiler
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64

- name: Checkout code
uses: actions/checkout@v3

- name: Set mamba environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-dev.yml
cache-environment: true
init-shell: bash cmd.exe

- name: Configure
shell: cmd /C CALL {0}
run: cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%MINICONDA%\\LIBRARY -DBUILD_TESTS=ON .

- name: Build
shell: cmd /C CALL {0}
run: nmake test_xtl

- name: Test
run: |
cd test
.\test_xtl

0 comments on commit 2939124

Please sign in to comment.