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