-
Notifications
You must be signed in to change notification settings - Fork 906
53 lines (53 loc) · 1.59 KB
/
publish.yml
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
name: Upload Python Package
on:
push:
branches:
- main
- release-*
pull_request:
branches:
- main
- release-*
jobs:
deploy-conda:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target-platform: linux-x86_64
- os: ubuntu-latest
target-platform: linux-aarch64
- os: windows-latest
target-platform: win-64
- os: macos-latest-large
target-platform: osx-intel
- os: macos-latest-xlarge
target-platform: osx-arm64
runs-on: ${{ matrix.os }}
defaults:
run:
# Required for conda-incubator/setup-miniconda@v3
shell: bash -el {0}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get conda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: 3.12
channels: conda-forge
miniconda-version: latest
- name: Prepare
run: conda install anaconda-client conda-build=24.1.2 conda-verify py-lief=0.12.3
- name: Build and Upload
run: |
if [ "${{ matrix.target-platform }}" == "osx-arm64" ]; then
conda build . -m conda_build_config.yaml -m conda_build_config_osx_arm64.yaml
elif [ "${{ matrix.target-platform }}" == "linux-aarch64" ]; then
conda install cross-python_linux-aarch64
conda build . -m conda_build_config.yaml -m conda_build_config_linux_aarch64.yaml
else
conda build . -m conda_build_config.yaml
fi