Skip to content

Commit

Permalink
unify GH workflow file for Anaconda build, test with Py3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrohwer committed Dec 14, 2023
1 parent 35e6157 commit 9834abb
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 56 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/build-conda-unix.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI build Anaconda on Windows
name: CI build Anaconda

on:
workflow_dispatch:
Expand All @@ -8,17 +8,22 @@ on:

jobs:
build:
runs-on: windows-latest
name: Build Anaconda packages on windows-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-12]
name: Build Anaconda packages on ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Install rtools MinGW compilers
- name: (windows) Install rtools MinGW compilers
if: matrix.os == 'windows-latest'
run: |
choco install rtools -y --no-progress --force --version=4.0.0.20220206
- name: Add compiler path to PATH
- name: (windows) Add compiler path to PATH
if: matrix.os == 'windows-latest'
uses: myci-actions/export-env-var-powershell@1
with:
name: PATH
Expand All @@ -36,9 +41,14 @@ jobs:
mamba update --all
mkdir build_output
- name: Build packages
run: conda mambabuild --no-anaconda-upload --output-folder ./build_output ./packaging/conda-win
- name: Build packages for ${{ matrix.os }}
if: matrix.os != 'windows-latest'
run: conda mambabuild --no-anaconda-upload --output-folder ./build_output ./packaging/conda-unix

- name: Build packages for ${{ matrix.os }}
if: matrix.os == 'windows-latest'
run: conda mambabuild --no-anaconda-upload --output-folder ./build_output ./packaging/conda-win

- uses: actions/upload-artifact@v3
with:
name: build_outputs
Expand Down
8 changes: 4 additions & 4 deletions packaging/conda-unix/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
python:
- 3.9
- 3.10
# - 3.9
# - 3.10
- 3.11
# - 3.12
numpy:
- 1.23
- 1.23
# - 1.23
# - 1.23
- 1.23
# - 1.26
zip_keys:
Expand Down
4 changes: 2 additions & 2 deletions packaging/conda-win/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python:
- 3.9
- 3.10
# - 3.9
# - 3.10
- 3.11
# - 3.12

0 comments on commit 9834abb

Please sign in to comment.