[r12.0] update workflows for release branches #808
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Open-CE XGBoost Build | |
on: | |
push: | |
branches: | |
- 'main' # matches the main branch | |
- 'r*' # matches every release branch | |
pull_request: | |
branches: | |
- 'main' # matches the main branch | |
- 'r*' # matches every release branch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/[email protected] | |
with: | |
auto-update-conda: false | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
pip install . | |
- name: Build XGBoost | |
shell: bash -l {0} | |
# yamllint disable rule:line-length | |
run: | | |
open-ce build env xgboost-env \ | |
--container_build \ | |
--python_versions ${{ matrix.python-version }} \ | |
--build_types cpu | |
# yamllint enable rule:line-length |