Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Condabuild for windows #13

Merged
merged 3 commits into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading