-
Notifications
You must be signed in to change notification settings - Fork 4
64 lines (50 loc) · 1.41 KB
/
windows_conda_build.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
59
60
61
62
63
name: WindowsCondaBuild
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# The windows build complains about the default PATH being too long. Trying to set
# the path here, but whatever is being tried it fails. TBD.
#env:
# PATH: ""
jobs:
WindowsCondaBuild:
name: WindowsCondaBuild
runs-on: windows-latest
steps:
- name: Check env variables
shell: bash
id: env_check
run: |
env
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Setup env variables
shell: bash
id: envs
run: |
echo "VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC" >> $GITHUB_ENV
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: buildenv
environment-file: conda_build_env.yml
auto-activate-base: false
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Build Package
run: |
conda build .
- name: Test Package
run: |
echo Empty test
- name: Upload
uses: actions/upload-artifact@v2
with:
name: polyview_windows_conda_build
path: "C:/Miniconda3/envs/buildenv/conda-bld/win-64"