Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Build and deploy a nightly release #406

Build and deploy a nightly release

Build and deploy a nightly release #406

Workflow file for this run

# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
name: Build and deploy a nightly release
on:
schedule:
# At 1:15AM UTC on every Monday, Wednesday, and Friday.
- cron: '15 1 * * 1,3,5'
workflow_dispatch:
inputs:
deploy:
type: boolean
default: false
jobs:
lint_check:
name: Build
uses: ./.github/workflows/_lint.yaml
build_doc:
name: Build
needs: lint_check
uses: ./.github/workflows/_build_doc.yaml
build_wheel:
name: Build
needs: lint_check
uses: ./.github/workflows/_build_wheel.yaml
with:
matrix: |
{
py: ['3.8', '3.9', '3.10'],
build_variant: ['cpu', 'cu117', 'cu118'],
sanitizer: ['nosan'],
include: [
{
py: '3.8',
build_variant: 'cpu',
sanitizer: 'asan_ubsan'
}
]
}
dev_stamp: true
build_conda:
name: Build
needs: lint_check
uses: ./.github/workflows/_build_conda.yaml
with:
matrix: |
{
py: ['3.8', '3.9', '3.10'],
build_variant: ['cpu', 'cu117', 'cu118'],
sanitizer: ['nosan'],
include: [
{
py: '3.8',
build_variant: 'cpu',
sanitizer: 'asan_ubsan'
}
]
}
dev_stamp: true
test_wheel_cpu:
name: Test (CPU)
needs: build_wheel
uses: ./.github/workflows/_test_wheel.yaml
with:
matrix: |
{
py: ['3.8', '3.9', '3.10'],
build_variant: ['cpu'],
sanitizer: ['nosan'],
include: [
{
py: '3.8',
build_variant: 'cpu',
sanitizer: 'asan_ubsan'
}
]
}
test_wheel_cu117:
name: Test (CUDA 11.7)
needs: test_wheel_cpu
uses: ./.github/workflows/_test_wheel.yaml
with:
matrix: |
{
py: ['3.8', '3.9', '3.10'],
build_variant: ['cu117'],
sanitizer: ['nosan']
}
test_wheel_cu118:
name: Test (CUDA 11.8)
needs: test_wheel_cu117
uses: ./.github/workflows/_test_wheel.yaml
with:
matrix: |
{
py: ['3.8', '3.9', '3.10'],
build_variant: ['cu118'],
sanitizer: ['nosan']
}
test_conda_cpu:
name: Test (CPU)
needs: build_conda
uses: ./.github/workflows/_test_conda.yaml
with:
matrix: |
{
py: ['3.8', '3.9', '3.10'],
build_variant: ['cpu'],
sanitizer: ['nosan'],
include: [
{
py: '3.8',
build_variant: 'cpu',
sanitizer: 'asan_ubsan'
}
]
}
test_conda_cu117:
name: Test (CUDA 11.7)
needs: test_conda_cpu
uses: ./.github/workflows/_test_conda.yaml
with:
matrix: |
{
py: ['3.8', '3.9', '3.10'],
build_variant: ['cu117'],
sanitizer: ['nosan']
}
test_conda_cu118:
name: Test (CUDA 11.8)
needs: test_conda_cu117
uses: ./.github/workflows/_test_conda.yaml
with:
matrix: |
{
py: ['3.8', '3.9', '3.10'],
build_variant: ['cu118'],
sanitizer: ['nosan']
}
deploy:
name: Deploy
if: github.event_name == 'schedule' || github.event.inputs.deploy == 'true'
needs: [build_doc, test_wheel_cu118, test_conda_cu118]
uses: ./.github/workflows/_deploy.yaml
with:
matrix: |
{
py: ['3.8', '3.9', '3.10'],
build_variant: ['cpu', 'cu117', 'cu118'],
}
s3_wheel_path: pytorch/whl/nightly
doc_folder_override: nightly
secrets:
anaconda_token: ${{ secrets.ANACONDA_NIGHTLY_TOKEN }}
aws_key_id: ${{ secrets.AWS_PYTORCH_KEY_ID }}
aws_access_key: ${{ secrets.AWS_PYTORCH_ACCESS_KEY }}