1+ # This file was generated automatically from conda-smithy. To update this configuration,
2+ # update the conda-forge.yml and/or the recipe/meta.yaml.
3+ # -*- mode: yaml -*-
4+
5+ name : Build conda package
6+ on :
7+ push :
8+
9+ pull_request :
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
13+ cancel-in-progress : true
14+
15+ jobs :
16+ build :
17+ name : ${{ matrix.CONFIG }}
18+ runs-on : ${{ matrix.runs_on }}
19+ timeout-minutes : 360
20+ strategy :
21+ fail-fast : false
22+ max-parallel : 50
23+ matrix :
24+ include :
25+ - CONFIG : linux_64_
26+ UPLOAD_PACKAGES : True
27+ os : ubuntu
28+ runs_on : ['ubuntu-latest']
29+ DOCKER_IMAGE : quay.io/condaforge/linux-anvil-x86_64:alma9
30+ - CONFIG : linux_aarch64_
31+ UPLOAD_PACKAGES : True
32+ os : ubuntu
33+ runs_on : ['ubuntu-latest']
34+ DOCKER_IMAGE : quay.io/condaforge/linux-anvil-x86_64:alma9
35+ - CONFIG : linux_ppc64le_
36+ UPLOAD_PACKAGES : True
37+ os : ubuntu
38+ runs_on : ['ubuntu-latest']
39+ DOCKER_IMAGE : quay.io/condaforge/linux-anvil-x86_64:alma9
40+ steps :
41+
42+ - name : Checkout code
43+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
44+
45+ - name : Build on Linux
46+ id : build-linux
47+ if : matrix.os == 'ubuntu'
48+ env :
49+ CONFIG : ${{ matrix.CONFIG }}
50+ UPLOAD_PACKAGES : ${{ matrix.UPLOAD_PACKAGES }}
51+ DOCKER_IMAGE : ${{ matrix.DOCKER_IMAGE }}
52+ CI : github_actions
53+ CONDA_FORGE_DOCKER_RUN_ARGS : " ${{ matrix.CONDA_FORGE_DOCKER_RUN_ARGS }}"
54+ BINSTAR_TOKEN : ${{ secrets.BINSTAR_TOKEN }}
55+ FEEDSTOCK_TOKEN : ${{ secrets.FEEDSTOCK_TOKEN }}
56+ STAGING_BINSTAR_TOKEN : ${{ secrets.STAGING_BINSTAR_TOKEN }}
57+ shell : bash
58+ run : |
59+ if [[ "$(uname -m)" == "x86_64" ]]; then
60+ echo "::group::Configure binfmt_misc"
61+ docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes
62+ fi
63+ export flow_run_id="github_$GITHUB_RUN_ID"
64+ export remote_url="https://github.com/$GITHUB_REPOSITORY"
65+ export sha="$GITHUB_SHA"
66+ export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)"
67+ export GIT_BRANCH="$(basename $GITHUB_REF)"
68+ if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
69+ export IS_PR_BUILD="True"
70+ else
71+ export IS_PR_BUILD="False"
72+ fi
73+ echo "::endgroup::"
74+ ./.scripts/run_docker_build.sh
75+
76+ - name : Build on macOS
77+ id : build-macos
78+ if : matrix.os == 'macos'
79+ env :
80+ CONFIG : ${{ matrix.CONFIG }}
81+ UPLOAD_PACKAGES : ${{ matrix.UPLOAD_PACKAGES }}
82+ CI : github_actions
83+ BINSTAR_TOKEN : ${{ secrets.BINSTAR_TOKEN }}
84+ FEEDSTOCK_TOKEN : ${{ secrets.FEEDSTOCK_TOKEN }}
85+ STAGING_BINSTAR_TOKEN : ${{ secrets.STAGING_BINSTAR_TOKEN }}
86+ shell : bash
87+ run : |
88+ export flow_run_id="github_$GITHUB_RUN_ID"
89+ export remote_url="https://github.com/$GITHUB_REPOSITORY"
90+ export sha="$GITHUB_SHA"
91+ export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)"
92+ export GIT_BRANCH="$(basename $GITHUB_REF)"
93+ if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
94+ export IS_PR_BUILD="True"
95+ else
96+ export IS_PR_BUILD="False"
97+ fi
98+ ./.scripts/run_osx_build.sh
99+
100+ - name : Build on windows
101+ id : build-windows
102+ if : matrix.os == 'windows'
103+ shell : cmd
104+ run : |
105+ set "flow_run_id=github_%GITHUB_RUN_ID%"
106+ set "remote_url=https://github.com/%GITHUB_REPOSITORY%"
107+ set "sha=%GITHUB_SHA%"
108+ call ".scripts\run_win_build.bat"
109+ env :
110+ # default value; make it explicit, as it needs to match with artefact
111+ # generation below. Not configurable for now, can be revisited later
112+ CONDA_BLD_DIR : C:\bld
113+ MINIFORGE_HOME : ${{ contains(runner.arch, 'ARM') && 'C' || 'D' }}:\Miniforge
114+ PYTHONUNBUFFERED : 1
115+ CONFIG : ${{ matrix.CONFIG }}
116+ CI : github_actions
117+ UPLOAD_PACKAGES : ${{ matrix.UPLOAD_PACKAGES }}
118+ BINSTAR_TOKEN : ${{ secrets.BINSTAR_TOKEN }}
119+ FEEDSTOCK_TOKEN : ${{ secrets.FEEDSTOCK_TOKEN }}
120+ STAGING_BINSTAR_TOKEN : ${{ secrets.STAGING_BINSTAR_TOKEN }}
0 commit comments