diff --git a/.github/workflows/conda-packaging.yml b/.github/workflows/conda-packaging.yml index f0af7cb1..df93ca65 100644 --- a/.github/workflows/conda-packaging.yml +++ b/.github/workflows/conda-packaging.yml @@ -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 . @@ -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 diff --git a/.github/workflows/mmg-packaging.yml b/.github/workflows/mmg-packaging.yml index 8dcd51f5..91b2b413 100644 --- a/.github/workflows/mmg-packaging.yml +++ b/.github/workflows/mmg-packaging.yml @@ -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 diff --git a/.github/workflows/neper-packaging.yml b/.github/workflows/neper-packaging.yml index 6798d88b..fe5a1588 100644 --- a/.github/workflows/neper-packaging.yml +++ b/.github/workflows/neper-packaging.yml @@ -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