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 : 10
23+ matrix :
24+ include :
25+ - CONFIG : linux_64_license_familygpl
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_64_license_familylgpl
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_aarch64_license_familygpl
36+ UPLOAD_PACKAGES : True
37+ os : ubuntu
38+ runs_on : ['ubuntu-latest']
39+ DOCKER_IMAGE : quay.io/condaforge/linux-anvil-x86_64:alma9
40+ - CONFIG : linux_aarch64_license_familylgpl
41+ UPLOAD_PACKAGES : True
42+ os : ubuntu
43+ runs_on : ['ubuntu-latest']
44+ DOCKER_IMAGE : quay.io/condaforge/linux-anvil-x86_64:alma9
45+ - CONFIG : linux_ppc64le_license_familygpl
46+ UPLOAD_PACKAGES : True
47+ os : ubuntu
48+ runs_on : ['ubuntu-latest']
49+ DOCKER_IMAGE : quay.io/condaforge/linux-anvil-x86_64:alma9
50+ - CONFIG : linux_ppc64le_license_familylgpl
51+ UPLOAD_PACKAGES : True
52+ os : ubuntu
53+ runs_on : ['ubuntu-latest']
54+ DOCKER_IMAGE : quay.io/condaforge/linux-anvil-x86_64:alma9
55+ - CONFIG : osx_64_license_familygpl
56+ UPLOAD_PACKAGES : True
57+ os : macos
58+ runs_on : ['macos-15-intel']
59+ - CONFIG : osx_64_license_familylgpl
60+ UPLOAD_PACKAGES : True
61+ os : macos
62+ runs_on : ['macos-15-intel']
63+ - CONFIG : osx_arm64_license_familygpl
64+ UPLOAD_PACKAGES : True
65+ os : macos
66+ runs_on : ['macos-15-intel']
67+ - CONFIG : osx_arm64_license_familylgpl
68+ UPLOAD_PACKAGES : True
69+ os : macos
70+ runs_on : ['macos-15-intel']
71+ - CONFIG : win_64_license_familygpl
72+ UPLOAD_PACKAGES : True
73+ os : windows
74+ runs_on : ['windows-latest']
75+ - CONFIG : win_64_license_familylgpl
76+ UPLOAD_PACKAGES : True
77+ os : windows
78+ runs_on : ['windows-latest']
79+ - CONFIG : win_arm64_license_familygpl
80+ UPLOAD_PACKAGES : True
81+ os : windows
82+ runs_on : ['windows-latest']
83+ - CONFIG : win_arm64_license_familylgpl
84+ UPLOAD_PACKAGES : True
85+ os : windows
86+ runs_on : ['windows-latest']
87+ steps :
88+
89+ - name : Checkout code
90+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
91+
92+ - name : Build on Linux
93+ id : build-linux
94+ if : matrix.os == 'ubuntu'
95+ env :
96+ CONFIG : ${{ matrix.CONFIG }}
97+ UPLOAD_PACKAGES : ${{ matrix.UPLOAD_PACKAGES }}
98+ DOCKER_IMAGE : ${{ matrix.DOCKER_IMAGE }}
99+ CI : github_actions
100+ CONDA_FORGE_DOCKER_RUN_ARGS : " ${{ matrix.CONDA_FORGE_DOCKER_RUN_ARGS }}"
101+ BINSTAR_TOKEN : ${{ secrets.BINSTAR_TOKEN }}
102+ FEEDSTOCK_TOKEN : ${{ secrets.FEEDSTOCK_TOKEN }}
103+ STAGING_BINSTAR_TOKEN : ${{ secrets.STAGING_BINSTAR_TOKEN }}
104+ shell : bash
105+ run : |
106+ if [[ "$(uname -m)" == "x86_64" ]]; then
107+ echo "::group::Configure binfmt_misc"
108+ docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes
109+ fi
110+ export flow_run_id="github_$GITHUB_RUN_ID"
111+ export remote_url="https://github.com/$GITHUB_REPOSITORY"
112+ export sha="$GITHUB_SHA"
113+ export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)"
114+ export GIT_BRANCH="$(basename $GITHUB_REF)"
115+ if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
116+ export IS_PR_BUILD="True"
117+ else
118+ export IS_PR_BUILD="False"
119+ fi
120+ echo "::endgroup::"
121+ ./.scripts/run_docker_build.sh
122+
123+ - name : Build on macOS
124+ id : build-macos
125+ if : matrix.os == 'macos'
126+ env :
127+ CONFIG : ${{ matrix.CONFIG }}
128+ UPLOAD_PACKAGES : ${{ matrix.UPLOAD_PACKAGES }}
129+ CI : github_actions
130+ BINSTAR_TOKEN : ${{ secrets.BINSTAR_TOKEN }}
131+ FEEDSTOCK_TOKEN : ${{ secrets.FEEDSTOCK_TOKEN }}
132+ STAGING_BINSTAR_TOKEN : ${{ secrets.STAGING_BINSTAR_TOKEN }}
133+ shell : bash
134+ run : |
135+ export flow_run_id="github_$GITHUB_RUN_ID"
136+ export remote_url="https://github.com/$GITHUB_REPOSITORY"
137+ export sha="$GITHUB_SHA"
138+ export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)"
139+ export GIT_BRANCH="$(basename $GITHUB_REF)"
140+ if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
141+ export IS_PR_BUILD="True"
142+ else
143+ export IS_PR_BUILD="False"
144+ fi
145+ ./.scripts/run_osx_build.sh
146+
147+ - name : Build on windows
148+ id : build-windows
149+ if : matrix.os == 'windows'
150+ shell : cmd
151+ run : |
152+ set "flow_run_id=github_%GITHUB_RUN_ID%"
153+ set "remote_url=https://github.com/%GITHUB_REPOSITORY%"
154+ set "sha=%GITHUB_SHA%"
155+ call ".scripts\run_win_build.bat"
156+ env :
157+ # default value; make it explicit, as it needs to match with artefact
158+ # generation below. Not configurable for now, can be revisited later
159+ CONDA_BLD_DIR : C:\bld
160+ MINIFORGE_HOME : D:\Miniforge
161+ PYTHONUNBUFFERED : 1
162+ CONFIG : ${{ matrix.CONFIG }}
163+ CI : github_actions
164+ UPLOAD_PACKAGES : ${{ matrix.UPLOAD_PACKAGES }}
165+ BINSTAR_TOKEN : ${{ secrets.BINSTAR_TOKEN }}
166+ FEEDSTOCK_TOKEN : ${{ secrets.FEEDSTOCK_TOKEN }}
167+ STAGING_BINSTAR_TOKEN : ${{ secrets.STAGING_BINSTAR_TOKEN }}
0 commit comments