Skip to content

Commit

Permalink
increase timeout-minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
megyaz committed Oct 28, 2024
1 parent 59f2555 commit 182dbec
Showing 1 changed file with 21 additions and 36 deletions.
57 changes: 21 additions & 36 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 @@ -17,62 +17,50 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
channels: conda-forge
auto-update-conda: true
- name: Install build dependencies
- name: Install conda-build
shell: bash -l {0}
run: |
conda install conda-build setuptools_scm boa git compilers
pip install wheel build
- name: Set environment variables for compilers
shell: bash -l {0}
run: |
export CXXFLAGS="-std=c++11" # Adjust flags as necessary for your project
run: conda install conda-build setuptools_scm boa git
- name: build package
shell: bash -l {0}
run: |
export SETUPTOOLS_SCM_PRETEND_VERSION=$(python -m setuptools_scm)
echo "Version: $SETUPTOOLS_SCM_PRETEND_VERSION"
conda mambabuild $GITHUB_WORKSPACE --output-folder=$GITHUB_WORKSPACE --no-anaconda-upload --debug
echo "Version: "
echo $SETUPTOOLS_SCM_PRETEND_VERSION
conda mambabuild $GITHUB_WORKSPACE --output-folder=$GITHUB_WORKSPACE
- uses: actions/upload-artifact@v3
with:
name: package-${{ github.sha }}
path: ${{ github.workspace }}/**/azint*.bz2

build-win:
runs-on: windows-latest
timeout-minutes: 15
timeout-minutes: 30 # Increased timeout limit

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup MSVC Compiler
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- uses: ilammy/msvc-dev-cmd@v1
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
channels: conda-forge
auto-update-conda: true
- name: Install build dependencies
run: |
conda install conda-build setuptools_scm boa git compilers
pip install wheel build
- name: Install conda-build
shell: pwsh # Use PowerShell shell
run: conda install conda-build setuptools_scm boa git
- name: build package
shell: pwsh
run: |
export SETUPTOOLS_SCM_PRETEND_VERSION=$(python -m setuptools_scm)
echo "Version: $SETUPTOOLS_SCM_PRETEND_VERSION"
conda mambabuild $GITHUB_WORKSPACE --output-folder=$GITHUB_WORKSPACE --no-anaconda-upload --debug
$env:SETUPTOOLS_SCM_PRETEND_VERSION = $(python -m setuptools_scm)
Write-Host "Version: $env:SETUPTOOLS_SCM_PRETEND_VERSION"
conda mambabuild $GITHUB_WORKSPACE --output-folder=$GITHUB_WORKSPACE
- uses: actions/upload-artifact@v3
with:
name: package-${{ github.sha }}
path: ${{ github.workspace }}/**/azint*.bz2

build-mac-arm:
runs-on: macos-14
timeout-minutes: 15
timeout-minutes: 30 # Increased timeout limit

steps:
- uses: actions/checkout@v3
Expand All @@ -81,19 +69,16 @@ jobs:
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
channels: conda-forge
auto-update-conda: true
- name: Install build dependencies
- name: Install conda-build
shell: bash -l {0}
run: |
conda install conda-build setuptools_scm boa git compilers
pip install wheel build
run: conda install conda-build setuptools_scm boa git
- name: build package
shell: bash -l {0}
run: |
export SETUPTOOLS_SCM_PRETEND_VERSION=$(python -m setuptools_scm)
echo "Version: $SETUPTOOLS_SCM_PRETEND_VERSION"
conda mambabuild $GITHUB_WORKSPACE --output-folder=$GITHUB_WORKSPACE --no-anaconda-upload --debug
echo "Version: "
echo $SETUPTOOLS_SCM_PRETEND_VERSION
conda mambabuild $GITHUB_WORKSPACE --output-folder=$GITHUB_WORKSPACE
- uses: actions/upload-artifact@v3
with:
name: package-${{ github.sha }}
Expand Down

0 comments on commit 182dbec

Please sign in to comment.