Skip to content

Commit 8f92901

Browse files
committed
use gha runner
1 parent 9e5fe36 commit 8f92901

File tree

4 files changed

+116
-78
lines changed

4 files changed

+116
-78
lines changed

.azure-pipelines/azure-pipelines-linux.yml

Lines changed: 0 additions & 75 deletions
This file was deleted.

.github/workflows/conda-build.yml

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

azure-pipelines.yml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

conda-forge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ github_actions:
2222
triggers:
2323
- push
2424
- pull_request
25-
# provider:
26-
# linux_64: github_actions
25+
provider:
26+
linux_64: github_actions
2727
test: native_and_emulated

0 commit comments

Comments
 (0)