[CI] Update GitHub Actions to use macos-11 (#8321)
This commit is contained in:
parent
d70e59fefc
commit
a71421e825
2
.github/workflows/jvm_tests.yml
vendored
2
.github/workflows/jvm_tests.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, ubuntu-latest, macos-10.15]
|
os: [windows-latest, ubuntu-latest, macos-11]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-10.15]
|
os: [macos-11]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
9
.github/workflows/python_tests.yml
vendored
9
.github/workflows/python_tests.yml
vendored
@ -46,14 +46,14 @@ jobs:
|
|||||||
name: Test installing XGBoost Python source package on ${{ matrix.os }}
|
name: Test installing XGBoost Python source package on ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-10.15, windows-latest]
|
os: [ubuntu-latest, macos-11, windows-latest]
|
||||||
python-version: ["3.8"]
|
python-version: ["3.8"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: 'true'
|
submodules: 'true'
|
||||||
- name: Install osx system dependencies
|
- name: Install osx system dependencies
|
||||||
if: matrix.os == 'macos-10.15'
|
if: matrix.os == 'macos-11'
|
||||||
run: |
|
run: |
|
||||||
brew install ninja libomp
|
brew install ninja libomp
|
||||||
- name: Install Ubuntu system dependencies
|
- name: Install Ubuntu system dependencies
|
||||||
@ -134,7 +134,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
- {os: macos-10.15, python-version "3.8" }
|
- {os: macos-11, python-version "3.8" }
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -172,8 +172,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd python-package
|
cd python-package
|
||||||
python --version
|
python --version
|
||||||
python setup.py bdist_wheel --universal
|
python setup.py install
|
||||||
pip install ./dist/*.whl
|
|
||||||
|
|
||||||
- name: Test Python package
|
- name: Test Python package
|
||||||
shell: bash -l {0}
|
shell: bash -l {0}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user