Skip to content

Commit

Permalink
Windows CI improvements:
Browse files Browse the repository at this point in the history
* upload wheel artifacts to the github workflow.
* use XLA from github head in CI builds.
* update release builds to match the CI build configuration.
  • Loading branch information
hawkinsp committed Jun 13, 2023
1 parent 600ecfa commit 0a70d42
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 36 deletions.
43 changes: 9 additions & 34 deletions .github/workflows/wheel_win_x64.yml
@@ -1,9 +1,8 @@
name: Wheel::Windows::x86_64
on:
workflow_dispatch: # allows triggering the workflow run manually
# pull_request:
# release:
# types: [published]
release:
types: [published]

env:
DISTUTILS_USE_SDK: 1
Expand All @@ -14,10 +13,10 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [windows-2019]
os: [win-2019-16core]
arch: [AMD64]
pyver: ['3.9', '3.10', '3.11']
name: ${{ matrix.os }} jaxlib Wheel-builder
name: ${{ matrix.os }} ${{ matrix.pyver }} jaxlib wheel build
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -39,30 +38,7 @@ jobs:
run: |
python -m pip install -r build/test-requirements.txt
"C:\\msys64\\;C:\\msys64\\usr\\bin\\;" >> $env:GITHUB_PATH
python.exe build\build.py `
--noenable_tpu `
--noenable_remote_tpu `
--noenable_mkl_dnn `
--target_cpu_features release `
--noenable_plugin_device `
--noremote_build `
--noenable_cuda `
--configure_only
bazel build --jobs=1 `
--cxxopt="/Zm2000" `
--verbose_failures `
--jobs=1 `
--discard_analysis_cache `
--notrack_incremental_state `
--nokeep_state_after_build `
--experimental_local_memory_estimate="true" `
--local_ram_resources=2048 `
//jaxlib
bazel run `
--verbose_failures=true `
//build:build_wheel -- `
--output_path=$(Join-Path -Path (Get-Location) -ChildPath "\tmp") `
--cpu="AMD64"
python.exe build\build.py
- name: Run tests
env:
Expand All @@ -74,8 +50,7 @@ jobs:
echo "JAX_ENABLE_CHECKS=$JAX_ENABLE_CHECKS"
pytest -n auto --tb=short tests examples
- uses: actions/upload-artifact@v2
if: ${{ github.event_name == 'release' }}
with:
name: jaxlib_wheels
path: ${{ github.workspace }}\dist\*.whl
- uses: actions/upload-artifact@v3
name: jaxlib_wheels
path: ${{ github.workspace }}\dist\*.whl
retention-days: 5
10 changes: 8 additions & 2 deletions .github/workflows/windows_ci.yml
Expand Up @@ -16,7 +16,7 @@ jobs:
os: [win-2019-16core]
arch: [AMD64]
pyver: ['3.9']
name: ${{ matrix.os }} jaxlib Wheel-builder
name: ${{ matrix.os }} CI build
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -36,9 +36,10 @@ jobs:
env:
BAZEL_VC: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC"
run: |
git clone https://github.com/openxla/xla.git
python -m pip install -r build/test-requirements.txt
"C:\\msys64\\;C:\\msys64\\usr\\bin\\;" >> $env:GITHUB_PATH
python.exe build\build.py
python.exe build\build.py --override_repository=xla=${{ github.workspace }}\xla
- name: Run tests
env:
Expand All @@ -49,3 +50,8 @@ jobs:
python -m pip install --no-index --find-links ${{ github.workspace }}\dist jaxlib
echo "JAX_ENABLE_CHECKS=$JAX_ENABLE_CHECKS"
pytest -n auto --tb=short tests examples
- uses: actions/upload-artifact@v3
name: jaxlib_wheels
path: ${{ github.workspace }}\dist\*.whl
retention-days: 5

0 comments on commit 0a70d42

Please sign in to comment.