-
Notifications
You must be signed in to change notification settings - Fork 2.6k
57 lines (49 loc) · 1.62 KB
/
windows_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Windows CI
on:
schedule:
- cron: "0 12 * * *" # Daily at 12:00 UTC
workflow_dispatch: # allows triggering the workflow run manually
env:
DISTUTILS_USE_SDK: 1
MSSdk: 1
jobs:
win-wheels:
strategy:
fail-fast: true
matrix:
os: [win-2019-16core]
arch: [AMD64]
pyver: ['3.9']
name: ${{ matrix.os }} CI build
runs-on: ${{ matrix.os }}
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyver }}
cache: 'pip'
- name: Build wheels
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 --override_repository=xla=${{ github.workspace }}\xla
- name: Run tests
env:
JAX_ENABLE_CHECKS: true
JAX_SKIP_SLOW_TESTS: true
run: |
python -m pip install -e ${{ github.workspace }}
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