1- # This file was added automatically by admin-migrations. Do not modify.
2- # It ensures that Github Actions can run once rerendered for the first time .
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 .
33# -*- mode: yaml -*-
44
55name : Build conda package
66on :
7- workflow_dispatch :
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
814
915jobs :
1016 build :
11- name : Disabled build
12- runs-on : ubuntu-slim
13- if : false
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+ STORE_BUILD_ARTIFACTS : False
27+ UPLOAD_PACKAGES : True
28+ os : ubuntu
29+ runs_on : ['ubuntu-latest']
30+ DOCKER_IMAGE : quay.io/condaforge/linux-anvil-x86_64:alma9
1431 steps :
15- - run : exit 0
32+
33+ - name : Checkout code
34+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
35+
36+ - name : Build on Linux
37+ id : build-linux
38+ if : matrix.os == 'ubuntu'
39+ env :
40+ CONFIG : ${{ matrix.CONFIG }}
41+ UPLOAD_PACKAGES : ${{ matrix.UPLOAD_PACKAGES }}
42+ DOCKER_IMAGE : ${{ matrix.DOCKER_IMAGE }}
43+ CI : github_actions
44+ CONDA_FORGE_DOCKER_RUN_ARGS : " ${{ matrix.CONDA_FORGE_DOCKER_RUN_ARGS }}"
45+ BINSTAR_TOKEN : ${{ secrets.BINSTAR_TOKEN }}
46+ FEEDSTOCK_TOKEN : ${{ secrets.FEEDSTOCK_TOKEN }}
47+ STAGING_BINSTAR_TOKEN : ${{ secrets.STAGING_BINSTAR_TOKEN }}
48+ shell : bash
49+ run : |
50+ if [[ "$(uname -m)" == "x86_64" ]]; then
51+ echo "::group::Configure binfmt_misc"
52+ docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes
53+ fi
54+ export flow_run_id="github_$GITHUB_RUN_ID"
55+ export remote_url="https://github.com/$GITHUB_REPOSITORY"
56+ export sha="$GITHUB_SHA"
57+ export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)"
58+ export GIT_BRANCH="$(basename $GITHUB_REF)"
59+ if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
60+ export IS_PR_BUILD="True"
61+ else
62+ export IS_PR_BUILD="False"
63+ fi
64+ echo "::endgroup::"
65+ ./.scripts/run_docker_build.sh
66+
67+ - name : Build on macOS
68+ id : build-macos
69+ if : matrix.os == 'macos'
70+ env :
71+ CONFIG : ${{ matrix.CONFIG }}
72+ UPLOAD_PACKAGES : ${{ matrix.UPLOAD_PACKAGES }}
73+ CI : github_actions
74+ BINSTAR_TOKEN : ${{ secrets.BINSTAR_TOKEN }}
75+ FEEDSTOCK_TOKEN : ${{ secrets.FEEDSTOCK_TOKEN }}
76+ STAGING_BINSTAR_TOKEN : ${{ secrets.STAGING_BINSTAR_TOKEN }}
77+ shell : bash
78+ run : |
79+ export flow_run_id="github_$GITHUB_RUN_ID"
80+ export remote_url="https://github.com/$GITHUB_REPOSITORY"
81+ export sha="$GITHUB_SHA"
82+ export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)"
83+ export GIT_BRANCH="$(basename $GITHUB_REF)"
84+ if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
85+ export IS_PR_BUILD="True"
86+ else
87+ export IS_PR_BUILD="False"
88+ fi
89+ ./.scripts/run_osx_build.sh
90+
91+ - name : Build on windows
92+ id : build-windows
93+ if : matrix.os == 'windows'
94+ shell : cmd
95+ run : |
96+ set "flow_run_id=github_%GITHUB_RUN_ID%"
97+ set "remote_url=https://github.com/%GITHUB_REPOSITORY%"
98+ set "sha=%GITHUB_SHA%"
99+ call ".scripts\run_win_build.bat"
100+ env :
101+ # default value; make it explicit, as it needs to match with artefact
102+ # generation below. Not configurable for now, can be revisited later
103+ CONDA_BLD_PATH : C:\bld
104+ MINIFORGE_HOME : ${{ contains(runner.arch, 'ARM') && 'C' || 'D' }}:\Miniforge
105+ PYTHONUNBUFFERED : 1
106+ CONFIG : ${{ matrix.CONFIG }}
107+ CI : github_actions
108+ UPLOAD_PACKAGES : ${{ matrix.UPLOAD_PACKAGES }}
109+ BINSTAR_TOKEN : ${{ secrets.BINSTAR_TOKEN }}
110+ FEEDSTOCK_TOKEN : ${{ secrets.FEEDSTOCK_TOKEN }}
111+ STAGING_BINSTAR_TOKEN : ${{ secrets.STAGING_BINSTAR_TOKEN }}
0 commit comments