-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (70 loc) · 2.11 KB
/
conda.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
79
80
81
82
83
84
85
name: Conda
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: Conda ${{ matrix.platform }}
defaults:
run:
shell: bash -l {0}
runs-on: ${{ matrix.platform }}
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
strategy:
fail-fast: true
matrix:
platform: ['windows-latest','macos-latest','ubuntu-latest']
env:
PDAL_PLATFORM: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Support longpaths
run: git config --system core.longpaths true
if: matrix.platform == 'windows-latest'
- name: Cache Conda Environment
uses: actions/cache@v3
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
use-mamba: true
auto-update-conda: true
use-only-tar-bz2: false
- name: Setup
run: |
source ./scripts/ci/conda/setup.sh
- name: Build
run: |
source ../scripts/ci/conda/compile.sh
working-directory: ./pdal-feedstock
- name: Debug
run: |
conda activate test
conda info
conda list
- uses: ilammy/msvc-dev-cmd@v1
if: matrix.platform == 'windows-latest'
- name: Test
run: |
source ./scripts/ci/conda/examples.sh
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.platform }}-conda-package
path: ./pdal-feedstock/packages/
- name: Deploy to pdal-master Conda channel
if: github.ref == 'refs/heads/master'
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
source ../scripts/ci/conda/upload.sh || true
working-directory: ./pdal-feedstock