Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/build_wheels_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ on:
description: 'Timeout for the job (in minutes)'
default: 60
type: number
secrets:
R2_ACCOUNT_ID:
description: Cloudflare R2 account ID
required: false
R2_ACCESS_KEY_ID:
description: Cloudflare R2 access key ID
required: false
R2_SECRET_ACCESS_KEY:
description: Cloudflare R2 secret access key
required: false

permissions:
id-token: write
Expand All @@ -106,6 +116,7 @@ jobs:
CU_VERSION: ${{ matrix.desired_cuda }}
name: build-${{ matrix.build_name }}
runs-on: ${{ inputs.runner-type }}
environment: ${{(inputs.trigger-event == 'schedule' || (inputs.trigger-event == 'push' && (startsWith(github.event.ref, 'refs/heads/nightly') || startsWith(github.event.ref, 'refs/tags/v')))) && 'pytorchbot-env' || ''}}
# If a build is taking longer than 60 minutes on these runners we need
# to have a conversation
timeout-minutes: ${{ inputs.timeout }}
Expand Down Expand Up @@ -273,6 +284,22 @@ jobs:
build-matrix: ${{ inputs.build-matrix }}
trigger-event: ${{ inputs.trigger-event }}

upload-r2:
needs: build
uses: ./.github/workflows/_binary_upload_r2.yml
if: always()
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
test-infra-repository: ${{ inputs.test-infra-repository }}
test-infra-ref: ${{ inputs.test-infra-ref }}
build-matrix: ${{ inputs.build-matrix }}
trigger-event: ${{ inputs.trigger-event }}
secrets:
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}
cancel-in-progress: true
30 changes: 29 additions & 1 deletion .github/workflows/build_wheels_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ on:
description: 'CPU architecture to build for'
default: "x64"
type: string
secrets:
R2_ACCOUNT_ID:
description: Cloudflare R2 account ID
required: false
R2_ACCESS_KEY_ID:
description: Cloudflare R2 access key ID
required: false
R2_SECRET_ACCESS_KEY:
description: Cloudflare R2 secret access key
required: false

permissions:
id-token: write
Expand All @@ -101,6 +111,7 @@ jobs:
UPLOAD_TO_BASE_BUCKET: ${{ matrix.upload_to_base_bucket }}
name: build-${{ matrix.build_name }}
runs-on: ${{ matrix.validation_runner }}
environment: ${{(inputs.trigger-event == 'schedule' || (inputs.trigger-event == 'push' && (startsWith(github.event.ref, 'refs/heads/nightly') || startsWith(github.event.ref, 'refs/tags/v')))) && 'pytorchbot-env' || ''}}
defaults:
run:
shell: bash -l {0}
Expand Down Expand Up @@ -391,6 +402,23 @@ jobs:
trigger-event: ${{ inputs.trigger-event }}
architecture: ${{ inputs.architecture }}

upload-r2:
needs: build
uses: ./.github/workflows/_binary_upload_r2.yml
if: always()
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
test-infra-repository: ${{ inputs.test-infra-repository }}
test-infra-ref: ${{ inputs.test-infra-ref }}
build-matrix: ${{ inputs.build-matrix }}
trigger-event: ${{ inputs.trigger-event }}
architecture: ${{ inputs.architecture }}
secrets:
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}
cancel-in-progress: true
cancel-in-progress: true
1 change: 1 addition & 0 deletions .lintrunner.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ init_command = [
'types-colorama==0.4.6',
'filelock==3.13.1',
'junitparser==2.1.1',
'pytest==8.4.2',
'rich==10.9.0',
'pyyaml==6.0.1',
'optree==0.13.0',
Expand Down
Loading