-
Notifications
You must be signed in to change notification settings - Fork 8
executable file
·58 lines (50 loc) · 1.34 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: windows
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 5 * * 1" # runs at 05:00 UTC on Mondays
jobs:
build:
runs-on: windows-latest
env:
configuration: Release
strategy:
fail-fast: true
max-parallel: 4
steps:
- uses: actions/checkout@v1
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: true
activate-environment: ''
- name: Configure
shell: powershell
run: |
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda install conda-devenv
conda devenv
conda activate optima
cmake -S . -B .build
- name: Build
shell: powershell
run: |
conda activate optima
clcache -s
clcache -z
cmake --build .build --config ${{ env.configuration }}
clcache -s
- name: Install
shell: powershell
run: |
conda activate optima
cmake --build .build --config ${{ env.configuration }} --target install
- name: Tests
shell: powershell
run: |
conda activate optima
cmake --build .build --config ${{ env.configuration }} --target tests