-
Notifications
You must be signed in to change notification settings - Fork 129
80 lines (68 loc) · 1.8 KB
/
win.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Windows
on:
push:
paths-ignore:
- 'doc/**'
pull_request:
paths-ignore:
- 'doc/**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
name: MSVC
runs-on: 'windows-latest'
strategy:
fail-fast: true
matrix:
type: ['floating']
defaults:
run:
shell: bash -l {0}
env:
BUILD_TYPE: ${{ matrix.type }}
CACHE_NUMBER: 0
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
- name: Support longpaths
run: git config --system core.longpaths true
if: matrix.platform == 'windows-latest'
- name: Cache Conda Environment
uses: actions/cache@v2
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-${{ steps.get-date.outputs.today }}-conda-${{ env.CACHE_NUMBER }}
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
environment-file: scripts/ci/environment.yml
python-version: "3.10"
activate-environment: "entwine-build"
use-mamba: true
auto-update-conda: true
- name: Setup
shell: bash -l {0}
run: |
source ./scripts/ci/win/setup.sh
- name: CMake
shell: bash -l {0}
working-directory: ./build
run: |
source ../scripts/ci/win/cmake.sh
- name: Compile
shell: bash -l {0}
working-directory: ./build
run: |
source ../scripts/ci/win/compile.sh
- name: Paths
shell: bash -l {0}
run: |
echo "D:/a/entwine/entwine/build/bin" >> $GITHUB_PATH
- name: Test
shell: bash -l {0}
working-directory: ./build
run: |
source ../scripts/ci/win/test.sh