This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (64 loc) · 2.42 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: conda-build
on: [push]
jobs:
build-posix:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, macos-14]
config: [py39, py310, py311, py312]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Miniconda
run: |
./setup-conda.sh ${{ runner.os }} ${{ runner.arch }}
- name: Configure conda and conda-build
run: sudo ./setup-osx.sh
if: runner.os == 'macOS'
- name: Build package
run: $CONDA/bin/conda build -m build_config/${{ runner.os }}-${{ runner.arch }}-${{ matrix.config }}.yaml ./recipe
- name: Upload package
env:
BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }}
run: |
export PATH=$CONDA/bin:$PATH
$CONDA/bin/python3 upload_or_check_non_existence -m build_config/${{ runner.os }}-${{ runner.arch }}-${{ matrix.config }}.yaml ./recipe sebp --channel=main
if: github.ref == 'refs/heads/master'
build-windows:
strategy:
matrix:
os: [windows-2019]
config: [py39, py310, py311, py312]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Miniconda
run: |
set "PATH=%CONDA%\\Scripts;%CONDA%\\Library\\bin;%PATH%"
conda config --set always_yes yes --set changeps1 no
conda config --set auto_update_conda false
conda config --set show_channel_urls true
conda config --set add_pip_as_python_dependency false
conda config --set conda_build.pkg_format 2
conda config --add channels sebp
conda update -q -n base -c defaults conda
conda install -q -n base anaconda-client conda-build
conda info --all
conda config --show
shell: cmd
- name: Build package
run: |
set "PATH=%CONDA%\\Scripts;%CONDA%\\Library\\bin;%PATH%"
conda build -m build_config\${{ runner.os }}-${{ matrix.config }}.yaml recipe
shell: cmd
- name: Upload package
env:
BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }}
run: |
set "PATH=%CONDA%\\Scripts;%CONDA%\\Library\\bin;%PATH%"
%CONDA%\python upload_or_check_non_existence -m build_config\${{ runner.os }}-${{ matrix.config }}.yaml recipe sebp --channel=main
shell: cmd
if: github.ref == 'refs/heads/master'