Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 11 additions & 7 deletions .github/workflows/conda-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,26 @@ concurrency:
cancel-in-progress: true

jobs:
conda-packaging:
name: Conda packaging
runs-on: "windows-latest"
build:
name: Conda packaging (noarch)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
miniforge-version: latest
activate-environment: packaging
conda-solver: libmamba

- name: Conda build
- name: Build Package
shell: bash -l {0}
env:
PACKAGE_VERSION: ${{ github.ref_name }}
BRANCH_NAME: ${{ github.ref_name }}
run: |
conda install -y conda-build anaconda-client
conda install -y conda-build
conda config --set anaconda_upload no
conda-build conda.recipe -c conda-forge --output-folder .

Expand All @@ -35,4 +38,5 @@ jobs:
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
conda install -y anaconda-client
anaconda upload noarch/*.conda --force --no-progress
77 changes: 26 additions & 51 deletions .github/workflows/mmg-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,68 +8,43 @@ concurrency:
cancel-in-progress: true

jobs:
Linux:
name: Linux
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
activate-environment: packaging
- name: Conda build for Linux
shell: bash -l {0}
run: |
conda install python=3.12 conda-build anaconda-client
conda config --set anaconda_upload no
conda-build mmg.recipe -c conda-forge -c set3mah --output-folder .
- name: Upload to Anaconda
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
anaconda upload linux-64/*.conda --force --no-progress
build:
name: ${{ matrix.os }} (${{ matrix.conda_platform }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- os: Linux
runner: ubuntu-latest
conda_platform: linux-64
- os: MacOS
runner: macos-latest
conda_platform: osx-arm64
- os: Windows
runner: windows-latest
conda_platform: win-64

macos:
name: MacOS
runs-on: "macos-latest"
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
activate-environment: packaging
- name: Conda build for MacOS
shell: bash -l {0}
run: |
conda install python=3.12 conda-build anaconda-client
conda config --set anaconda_upload no
conda-build mmg.recipe -c conda-forge -c set3mah --output-folder .
- name: Upload to Anaconda
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
anaconda upload osx-arm64/*.conda --force --no-progress
- uses: actions/checkout@v6

windows:
name: Windows
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
miniforge-version: latest
activate-environment: packaging
- name: Conda build for Windows
conda-solver: libmamba

- name: Build Package
shell: bash -l {0}
run: |
conda install python=3.12 conda-build anaconda-client
conda install -y conda-build
conda config --set anaconda_upload no
conda-build mmg.recipe -c conda-forge -c set3mah --output-folder .
conda-build mmg.recipe -c set3mah -c conda-forge --no-test --output-folder .

- name: Upload to Anaconda
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
anaconda upload win-64/*.conda --force --no-progress
conda install -y anaconda-client
anaconda upload ${{ matrix.conda_platform }}/*.conda --force --no-progress
77 changes: 26 additions & 51 deletions .github/workflows/neper-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,68 +8,43 @@ concurrency:
cancel-in-progress: true

jobs:
Linux:
name: Linux
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
activate-environment: packaging
- name: Conda build for Linux
shell: bash -l {0}
run: |
conda install python=3.12 conda-build anaconda-client
conda config --set anaconda_upload no
conda-build neper.recipe -c conda-forge -c set3mah --output-folder .
- name: Upload to Anaconda
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
anaconda upload linux-64/*.conda --force --no-progress
build:
name: ${{ matrix.os }} (${{ matrix.conda_platform }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- os: Linux
runner: ubuntu-latest
conda_platform: linux-64
- os: MacOS
runner: macos-latest
conda_platform: osx-arm64
- os: Windows
runner: windows-latest
conda_platform: win-64

macos:
name: MacOS
runs-on: "macos-latest"
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
activate-environment: packaging
- name: Conda build for MacOS
shell: bash -l {0}
run: |
conda install python=3.12 conda-build anaconda-client
conda config --set anaconda_upload no
conda-build neper.recipe -c conda-forge -c set3mah --output-folder .
- name: Upload to Anaconda
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
anaconda upload osx-arm64/*.conda --force --no-progress
- uses: actions/checkout@v6

windows:
name: Windows
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
miniforge-version: latest
activate-environment: packaging
- name: Conda build for Windows
conda-solver: libmamba

- name: Build Package
shell: bash -l {0}
run: |
conda install python=3.12 conda-build anaconda-client
conda install -y conda-build
conda config --set anaconda_upload no
conda-build neper.recipe -c conda-forge -c set3mah --output-folder .
conda-build neper.recipe -c conda-forge -c set3mah --no-test --output-folder .

- name: Upload to Anaconda
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
anaconda upload win-64/*.conda --force --no-progress
conda install -y anaconda-client
anaconda upload ${{ matrix.conda_platform }}/*.conda --force --no-progress
Loading