forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (55 loc) · 1.72 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
name: Conda
on:
push:
paths-ignore:
- 'doc/**'
# Disabled because of https://github.com/OSGeo/gdal/issues/5618
#pull_request:
# paths-ignore:
# - 'doc/**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Conda ${{ matrix.platform }}
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: true
matrix:
platform: ['ubuntu-latest','windows-latest','macos-10.15']
env:
PLATFORM: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge
auto-update-conda: true
- name: Setup
shell: bash -l {0}
run: |
source ./ci/travis/conda/setup.sh
- name: Support longpaths
run: git config --system core.longpaths true
if: matrix.platform == 'windows-latest'
- name: Build
shell: bash -l {0}
run: |
source ../ci/travis/conda/compile.sh
working-directory: ./gdal-feedstock
- uses: ilammy/msvc-dev-cmd@v1
if: matrix.platform == 'windows-latest'
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.platform }}-conda-package
path: ./gdal-feedstock/packages/
- name: Deploy to gdal-master Conda channel
if: github.ref == 'refs/heads/master'
shell: bash -l {0}
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
source ../ci/travis/conda/upload.sh || true
working-directory: ./gdal-feedstock