Skip to content

Commit

Permalink
Merge branch 'macos-arm'
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-engelmann committed Oct 28, 2024
2 parents 774eac3 + 82a5e9c commit a1f077f
Showing 1 changed file with 63 additions and 2 deletions.
65 changes: 63 additions & 2 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v3
Expand All @@ -18,7 +19,67 @@ jobs:
miniforge-version: latest
- name: Install conda-build
shell: bash -l {0}
run: conda install conda-build setuptools_scm boa
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: "
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: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
os: [windows-latest]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ilammy/msvc-dev-cmd@v1
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
- name: Install conda-build
shell: bash -l {0}
run: conda install conda-build setuptools_scm boa git
- name: build package
shell: bash -l {0}
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
- 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]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
- name: Install conda-build
shell: bash -l {0}
run: conda install conda-build setuptools_scm boa git
- name: build package
shell: bash -l {0}
run: |
Expand Down

0 comments on commit a1f077f

Please sign in to comment.