From bb7dde0752bfb35389b536b2ee6cd37f94f0a511 Mon Sep 17 00:00:00 2001 From: Howard Butler Date: Wed, 14 Oct 2020 12:30:50 -0500 Subject: Add Conda package GitHub Action (#2373) * implement conda package building * paths * need libtool * PLATFORM check * point to my PROJ feedstock for now * point to PROJ repos --- .github/workflows/conda.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ scripts/ci/conda/compile.sh | 8 ++++++++ scripts/ci/conda/setup.sh | 22 ++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 .github/workflows/conda.yml create mode 100755 scripts/ci/conda/compile.sh create mode 100755 scripts/ci/conda/setup.sh diff --git a/.github/workflows/conda.yml b/.github/workflows/conda.yml new file mode 100644 index 00000000..80828772 --- /dev/null +++ b/.github/workflows/conda.yml @@ -0,0 +1,43 @@ +name: Conda + +on: + push: + branches: '*' + +jobs: + build: + name: Conda ${{ matrix.platform }} + + runs-on: ${{ matrix.platform }} + strategy: + fail-fast: true + matrix: + platform: ['ubuntu-latest','windows-latest','macos-latest'] + + env: + PLATFORM: ${{ matrix.platform }} + + steps: + - uses: actions/checkout@v2 + + - uses: goanpeca/setup-miniconda@v1 + with: + channels: conda-forge + auto-update-conda: true + + - name: Setup + shell: bash -l {0} + run: | + source ./scripts/ci/conda/setup.sh + + - name: Build + shell: bash -l {0} + run: | + source ../scripts/ci/conda/compile.sh + working-directory: ./proj.4-feedstock + + + - uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.platform }}-conda-package + path: ./proj.4-feedstock/packages/ diff --git a/scripts/ci/conda/compile.sh b/scripts/ci/conda/compile.sh new file mode 100755 index 00000000..3d8fcfbe --- /dev/null +++ b/scripts/ci/conda/compile.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +mkdir packages + +conda build recipe --clobber-file recipe/recipe_clobber.yaml --output-folder packages +conda install -c ./packages proj + +#projinfo -s NAD27 -t EPSG:4269 --area "USA - Missouri" diff --git a/scripts/ci/conda/setup.sh b/scripts/ci/conda/setup.sh new file mode 100755 index 00000000..52b93889 --- /dev/null +++ b/scripts/ci/conda/setup.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +conda update -n base -c defaults conda -y +conda install conda-build ninja compilers -y + +pwd +ls +git clone https://github.com/conda-forge/proj.4-feedstock.git + +cd proj.4-feedstock +cat > recipe/recipe_clobber.yaml <