forked from PDAL/PDAL
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (53 loc) · 1.41 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
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'
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
strategy:
fail-fast: true
matrix:
type: ['current','fixed']
defaults:
run:
shell: bash -l {0}
env:
BUILD_TYPE: ${{ matrix.type }}
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- uses: mamba-org/setup-micromamba@v1
with:
init-shell: bash
environment-file: "scripts/ci/${{ matrix.type }}-environment.yml"
environment-name: "pdal-build"
cache-environment: true
cache-downloads: true
- name: Setup
run: |
source ./scripts/ci/win/setup.sh
- name: CMake
working-directory: ./build
run: |
source ../scripts/ci/win/cmake.sh
- name: Compile
working-directory: ./build
run: |
source ../scripts/ci/win/compile.sh
- name: Test
working-directory: ./build
run: |
source ../scripts/ci/win/test.sh
- name: Examples
run: |
source ./scripts/ci/win/examples.sh