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