Skip to content

Commit

Permalink
CI: fix Conda builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Aug 26, 2024
1 parent 54913a4 commit f43295a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
strategy:
fail-fast: true
matrix:
# macos-12: Intel
# macos-13: Intel
# macos-14: arm64
platform: ['ubuntu-latest','windows-latest','macos-12','macos-14']
platform: ['ubuntu-latest','windows-latest','macos-13','macos-14']

env:
PLATFORM: ${{ matrix.platform }}
GHA_CI_PLATFORM: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4
Expand Down
21 changes: 20 additions & 1 deletion scripts/ci/conda/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,26 @@

mkdir packages

conda build recipe --clobber-file recipe/recipe_clobber.yaml --output-folder packages
CONDA_PLAT=""
if grep -q "windows" <<< "$GHA_CI_PLATFORM"; then
CONDA_PLAT="win"
ARCH="64"
fi

if grep -q "ubuntu" <<< "$GHA_CI_PLATFORM"; then
CONDA_PLAT="linux"
ARCH="64"
fi

if grep -q "macos-14" <<< "$GHA_CI_PLATFORM"; then
CONDA_PLAT="osx"
ARCH="arm64"
elif grep -q "macos" <<< "$GHA_CI_PLATFORM"; then
CONDA_PLAT="osx"
ARCH="64"
fi

conda build recipe --clobber-file recipe/recipe_clobber.yaml --output-folder packages -m ".ci_support/${CONDA_PLAT}_${ARCH}_.yaml"
conda install -c ./packages proj

#projinfo -s NAD27 -t EPSG:4269 --area "USA - Missouri"
3 changes: 1 addition & 2 deletions scripts/ci/conda/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ git clone https://github.com/conda-forge/proj.4-feedstock.git
cd proj.4-feedstock
cat > recipe/recipe_clobber.yaml <<EOL
source:
git_url: https://github.com/OSGeo/PROJ.git
git_rev: ${GITHUB_SHA}
path: ../../../PROJ
url:
sha256:
patches:
Expand Down

0 comments on commit f43295a

Please sign in to comment.