Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
Update various things to see how the build goes
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhan committed May 28, 2023
1 parent f0a5e20 commit 870d08d
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 52 deletions.
85 changes: 44 additions & 41 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
submodules: true

- name: Download Bazelisk
run: curl -k -L https://github.com/bazelbuild/bazelisk/releases/download/v1.10.1/bazelisk-windows-amd64.exe -o $env:BAZEL_PATH
run: curl -k -L https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-windows-amd64.exe -o $env:BAZEL_PATH

- uses: actions/cache@v2
with:
Expand All @@ -46,15 +46,31 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
#============#
#=============#
# Python 3.11 #
#=============#
- name: py311
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: py311 pip install
run: pip install -r "$env:GITHUB_WORKSPACE/build-requirements.txt"
- name: py311 build whl and upload
run: |
cd "$env:GITHUB_WORKSPACE/jax"
../bazel-build-cpu.ps1 -bazel_path $env:BAZEL_PATH
az storage blob upload-batch --overwrite -d unstable -s "$env:GITHUB_WORKSPACE/jax/bazel-dist" --pattern '*.whl'
rm -Recurse -Force "$env:GITHUB_WORKSPACE/jax/bazel-dist"
#=============#
# Python 3.10 #
#============#
#=============#
- name: py310
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: py310 pip install
run: pip install -r "$env:GITHUB_WORKSPACE/build-requirements-py310.txt"
run: pip install -r "$env:GITHUB_WORKSPACE/build-requirements.txt"
- name: py310 build whl and upload
run: |
cd "$env:GITHUB_WORKSPACE/jax"
Expand Down Expand Up @@ -94,23 +110,8 @@ jobs:
az storage blob upload-batch --overwrite -d unstable -s "$env:GITHUB_WORKSPACE/jax/bazel-dist" --pattern '*.whl'
rm -Recurse -Force "$env:GITHUB_WORKSPACE/jax/bazel-dist"
#============#
# Python 3.7 #
#============#
- name: py37
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: py37 pip install
run: pip install -r "$env:GITHUB_WORKSPACE/build-requirements.txt"
- name: py37 build whl and upload
run: |
cd "$env:GITHUB_WORKSPACE/jax"
../bazel-build-cpu.ps1 -bazel_path $env:BAZEL_PATH
az storage blob upload-batch --overwrite -d unstable -s "$env:GITHUB_WORKSPACE/jax/bazel-dist" --pattern '*.whl'
rm -Recurse -Force "$env:GITHUB_WORKSPACE/jax/bazel-dist"
build-cuda111:
if: ${{ false }} # disable for now
runs-on: windows-2019
env:
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
Expand Down Expand Up @@ -143,7 +144,7 @@ jobs:
submodules: true

- name: Download Bazelisk
run: curl -k -L https://github.com/bazelbuild/bazelisk/releases/download/v1.10.1/bazelisk-windows-amd64.exe -o $env:BAZEL_PATH
run: curl -k -L https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-windows-amd64.exe -o $env:BAZEL_PATH

- name: Install CUDA 11.1
run: |
Expand All @@ -159,6 +160,22 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
#=============#
# Python 3.11 #
#=============#
- name: py311
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: py311 pip install
run: pip install -r "$env:GITHUB_WORKSPACE/build-requirements.txt"
- name: py311 build whl and upload
run: |
cd "$env:GITHUB_WORKSPACE/jax"
../bazel-build-cuda.ps1 -bazel_path $env:BAZEL_PATH -cuda_version '11.1' -cuda_prefix 'D:/CUDA'
az storage blob upload-batch --overwrite -d unstable -s "$env:GITHUB_WORKSPACE/jax/bazel-dist" --pattern '*.whl'
rm -Recurse -Force "$env:GITHUB_WORKSPACE/jax/bazel-dist"
#=============#
# Python 3.10 #
#=============#
Expand All @@ -167,7 +184,7 @@ jobs:
with:
python-version: "3.10"
- name: py310 pip install
run: pip install -r "$env:GITHUB_WORKSPACE/build-requirements-py310.txt"
run: pip install -r "$env:GITHUB_WORKSPACE/build-requirements.txt"
- name: py310 build whl and upload
run: |
cd "$env:GITHUB_WORKSPACE/jax"
Expand Down Expand Up @@ -207,34 +224,20 @@ jobs:
az storage blob upload-batch --overwrite -d unstable -s "$env:GITHUB_WORKSPACE/jax/bazel-dist" --pattern '*.whl'
rm -Recurse -Force "$env:GITHUB_WORKSPACE/jax/bazel-dist"
#============#
# Python 3.7 #
#============#
- name: py37
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: py37 pip install
run: pip install -r "$env:GITHUB_WORKSPACE/build-requirements.txt"
- name: py37 build whl and upload
run: |
cd "$env:GITHUB_WORKSPACE/jax"
../bazel-build-cuda.ps1 -bazel_path $env:BAZEL_PATH -cuda_version '11.1' -cuda_prefix 'D:/CUDA'
az storage blob upload-batch --overwrite -d unstable -s "$env:GITHUB_WORKSPACE/jax/bazel-dist" --pattern '*.whl'
rm -Recurse -Force "$env:GITHUB_WORKSPACE/jax/bazel-dist"
update-index:
if: ${{ ! cancelled() }}
needs: [build-cpu, build-cuda111]
needs:
- build-cpu
# - build-cuda111
runs-on: windows-2019
env:
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
steps:
- uses: actions/checkout@v2
- name: py39
- name: py311
uses: actions/setup-python@v2
with:
python-version: "3.9"
python-version: "3.11"
- name: update index.html
run: |
cd "$env:GITHUB_WORKSPACE/"
Expand Down
8 changes: 0 additions & 8 deletions build-requirements-py310.txt

This file was deleted.

4 changes: 2 additions & 2 deletions build-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# https://github.com/pypa/setuptools/pull/3690
setuptools>=65.6.1

numpy==1.20.3
scipy==1.5.4
numpy==1.23.5
scipy==1.9.3
wheel
six
auditwheel
2 changes: 1 addition & 1 deletion jax
Submodule jax updated from a68318 to 1b9180
2 changes: 2 additions & 0 deletions windows_configure.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ build:windows --host_copt=/d2ReducedOptimizeHugeFunctions

build:windows --copt=/arch:AVX
build:windows --copt=/arch:AVX2
build:windows --copt=/DTF_COMPILE_LIBRARY

0 comments on commit 870d08d

Please sign in to comment.