Skip to content

Commit

Permalink
Merge pull request maxiv-science#13 from maxiv-science/condabuild-for…
Browse files Browse the repository at this point in the history
…-windows

Condabuild for windows
  • Loading branch information
felix-engelmann authored Oct 28, 2024
2 parents a1f077f + 06acf07 commit b1ba24c
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
timeout-minutes: 30 # Increased timeout limit
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
Expand All @@ -26,18 +26,15 @@ jobs:
export SETUPTOOLS_SCM_PRETEND_VERSION=$(python -m setuptools_scm)
echo "Version: "
echo $SETUPTOOLS_SCM_PRETEND_VERSION
conda mambabuild $GITHUB_WORKSPACE --output-folder=$GITHUB_WORKSPACE
conda mambabuild $GITHUB_WORKSPACE/conda-recipe --output-folder=$GITHUB_WORKSPACE
- uses: actions/upload-artifact@v3
with:
name: package-${{ github.sha }}
path: ${{ github.workspace }}/**/azint*.bz2

build-win:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
os: [windows-latest]
runs-on: windows-latest
timeout-minutes: 30 # Increased timeout limit

steps:
- uses: actions/checkout@v3
Expand All @@ -48,27 +45,22 @@ jobs:
with:
miniforge-version: latest
- name: Install conda-build
shell: bash -l {0}
shell: pwsh # Use PowerShell shell
run: conda install conda-build setuptools_scm boa git
- name: build package
shell: bash -l {0}
shell: pwsh
run: |
rm /usr/bin/link
export SETUPTOOLS_SCM_PRETEND_VERSION=$(python -m setuptools_scm)
echo "Version: "
echo $SETUPTOOLS_SCM_PRETEND_VERSION
conda mambabuild $GITHUB_WORKSPACE --output-folder=$GITHUB_WORKSPACE
$env:SETUPTOOLS_SCM_PRETEND_VERSION = $(python -m setuptools_scm)
Write-Host "Version: $env:SETUPTOOLS_SCM_PRETEND_VERSION"
conda mambabuild "$env:GITHUB_WORKSPACE/conda-recipe" --output-folder="$env:GITHUB_WORKSPACE"
- uses: actions/upload-artifact@v3
with:
name: package-${{ github.sha }}
path: ${{ github.workspace }}/**/azint*.bz2

build-mac-arm:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
os: [macos-14]
runs-on: macos-14
timeout-minutes: 30 # Increased timeout limit

steps:
- uses: actions/checkout@v3
Expand All @@ -86,7 +78,7 @@ jobs:
export SETUPTOOLS_SCM_PRETEND_VERSION=$(python -m setuptools_scm)
echo "Version: "
echo $SETUPTOOLS_SCM_PRETEND_VERSION
conda mambabuild $GITHUB_WORKSPACE --output-folder=$GITHUB_WORKSPACE
conda mambabuild $GITHUB_WORKSPACE/conda-recipe --output-folder=$GITHUB_WORKSPACE
- uses: actions/upload-artifact@v3
with:
name: package-${{ github.sha }}
Expand Down

0 comments on commit b1ba24c

Please sign in to comment.