mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-06-04 17:08:42 +02:00
4e3b70140a
Build conda pkgs workflows [failing](https://github.com/slsdetectorgroup/aare/actions/runs/25800676450/job/75789547058#step:5:10) due to the missing `conda build` command. This PR fixes the issue.
45 lines
898 B
YAML
45 lines
898 B
YAML
name: Build conda pkgs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ubuntu-latest, macos-latest]
|
|
python-version: ["3.12",]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
# The setup-miniconda action needs this to activate miniconda
|
|
defaults:
|
|
run:
|
|
shell: "bash -l {0}"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Get conda
|
|
uses: conda-incubator/setup-miniconda@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
environment-file: etc/dev-env.yml
|
|
miniforge-version: latest
|
|
channels: conda-forge
|
|
conda-remove-defaults: "true"
|
|
|
|
- name: Disable upload
|
|
run: conda config --set anaconda_upload no
|
|
|
|
- name: Build
|
|
run: conda-build conda-recipe
|
|
|