Skip to content

Commit dd464ff

Browse files
committed
change upload destination and only enable linux x86 builds
1 parent ea7b99f commit dd464ff

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/build_artifacts.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
shell: bash
115115
strategy:
116116
matrix:
117-
runner: ["windows-x86-n2-64", "linux-x86-n2-16", "linux-arm64-t2a-48"]
117+
runner: ["linux-x86-n2-16"] #, "linux-arm64-t2a-48", "windows-x86-n2-64"]
118118
artifact: ${{ fromJSON(needs.determine_artifact_matrix.outputs.artifact_matrix) }}
119119
python: ["3.10", "3.11", "3.12", "3.13"]
120120
# jax-cuda-pjrt and jax are pure Python packages so they do not need to be built for each
@@ -174,11 +174,13 @@ jobs:
174174
halt-dispatch-input: ${{ inputs.halt-for-connection }}
175175
- name: Build ${{ matrix.artifact }}
176176
run: ./ci/build_artifacts.sh "${{ matrix.artifact }}"
177-
- name: Set Platform
177+
- name: Set PLATFORM env var for use in upload destination
178178
run: |
179-
echo "PLATFORM=$(uname)_$(uname -m)" >> $GITHUB_ENV
179+
os=$(uname -s | awk '{print tolower($0)}')
180+
arch=$(uname -m)
181+
echo "PLATFORM=${os}_${arch}" >> $GITHUB_ENV
180182
- name: Upload artifacts to GCS bucket
181183
# Upload if requested and one of the artifacts was built
182184
if: inputs.upload_artifacts
183-
run: gsutil -m cp -r $(pwd)/dist gs://general-ml-ci-transient/jax-github-actions/"${{ inputs.upload_destination }}"/$PLATFORM
185+
run: gsutil -m cp -r $(pwd)/dist/*.whl gs://general-ml-ci-transient/jax-github-actions/"${{ inputs.upload_destination }}"/$PLATFORM/python${JAXCI_HERMETIC_PYTHON_VERSION}/
184186

.github/workflows/pytest_cpu_reuse.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
shell: bash
3838
strategy:
3939
matrix:
40-
runner: ["linux-x86-n2-64", "linux-arm64-t2a-48"]
40+
runner: ["linux-x86-n2-64"] #, "linux-arm64-t2a-48"]
4141
python: ["3.10"]
4242

4343
runs-on: ${{ matrix.runner }}
@@ -56,11 +56,13 @@ jobs:
5656
halt-dispatch-input: ${{ inputs.halt-for-connection }}
5757
- name: Set Platform
5858
run: |
59-
echo "PLATFORM=$(uname)_$(uname -m)" >> $GITHUB_ENV
59+
os=$(uname -s | awk '{print tolower($0)}')
60+
arch=$(uname -m)
61+
echo "PLATFORM=${os}_${arch}" >> $GITHUB_ENV
6062
- name: Download the artifacts built in the "build_artifacts" job
6163
run: >-
6264
mkdir -p $(pwd)/dist &&
63-
gsutil -m cp -r gs://general-ml-ci-transient/jax-github-actions/"${{ github.workflow }}"/${{ github.run_number }}/${{ github.run_attempt }}/$PLATFORM $(pwd)/dist
65+
gsutil -m cp -r gs://general-ml-ci-transient/jax-github-actions/"${{ github.workflow }}"/${{ github.run_number }}/${{ github.run_attempt }}/$PLATFORM/python${JAXCI_HERMETIC_PYTHON_VERSION} $(pwd)/dist/
6466
- name: Install pytest
6567
env:
6668
JAXCI_PYTHON: python${{ matrix.python }}

0 commit comments

Comments
 (0)