|
6 | 6 | deploy-conda: |
7 | 7 | strategy: |
8 | 8 | matrix: |
9 | | - os: [ubuntu-latest, windows-latest, macos-latest] |
| 9 | + include: |
| 10 | + - os: ubuntu-latest |
| 11 | + target-platform: linux-x86_64 |
| 12 | + - os: ubuntu-latest |
| 13 | + target-platform: linux-aarch64 |
| 14 | + - os: windows-latest |
| 15 | + target-platform: win-64 |
| 16 | + - os: macos-latest-large |
| 17 | + target-platform: osx-intel |
| 18 | + - os: macos-latest-xlarge |
| 19 | + target-platform: osx-arm64 |
10 | 20 | runs-on: ${{ matrix.os }} |
| 21 | + defaults: |
| 22 | + run: |
| 23 | + # Required for conda-incubator/setup-miniconda@v3 |
| 24 | + shell: bash -el {0} |
11 | 25 | steps: |
12 | 26 | - uses: actions/checkout@v3 |
13 | 27 | with: |
14 | 28 | fetch-depth: 0 |
15 | 29 | - name: Get conda |
16 | | - uses: conda-incubator/setup-miniconda@v2 |
| 30 | + uses: conda-incubator/setup-miniconda@v3 |
17 | 31 | with: |
18 | | - python-version: 3.9 |
| 32 | + python-version: 3.12 |
19 | 33 | channels: conda-forge |
| 34 | + miniconda-version: latest |
20 | 35 | - name: Prepare |
21 | | - run: conda install anaconda-client conda-build conda-verify |
| 36 | + # Pinned because of https://github.com/conda/conda-build/issues/5267 |
| 37 | + run: conda install anaconda-client conda-build=24.1.2 conda-verify py-lief=0.12.3 |
22 | 38 | - name: Build and Upload |
23 | 39 | env: |
24 | 40 | ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }} |
25 | 41 | run: | |
26 | 42 | conda config --set anaconda_upload yes |
27 | | - conda build --user microsoft . |
| 43 | + if [ "${{ matrix.target-platform }}" == "osx-arm64" ]; then |
| 44 | + conda build --user microsoft . -m conda_build_config.yaml -m conda_build_config_osx_arm64.yaml |
| 45 | + elif [ "${{ matrix.target-platform }}" == "linux-aarch64" ]; then |
| 46 | + conda install cross-python_linux-aarch64 |
| 47 | + conda build --user microsoft . -m conda_build_config.yaml -m conda_build_config_linux_aarch64.yaml |
| 48 | + else |
| 49 | + conda build --user microsoft . -m conda_build_config.yaml |
| 50 | + fi |
0 commit comments