-
Notifications
You must be signed in to change notification settings - Fork 372
Simplify Release workflow and Add windows zip in the release artifacts #3800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6eebf8e
simplify the release linux workflow
lanluo-nvidia e235e69
Merge branch 'main' into lluo/release_windows_zip
lanluo-nvidia 2fb253a
test
lanluo-nvidia e3fc3ea
test CI
lanluo-nvidia 98f6a7d
test
lanluo-nvidia f65e66a
test
lanluo-nvidia 1ccf39b
add pkg_zip for windows zip release
lanluo-nvidia a827667
add alias
lanluo-nvidia c14654a
test
lanluo-nvidia 1a0f8cc
test
lanluo-nvidia e6f2657
sbsa use sbsa container image for release build
lanluo-nvidia 260ca74
rename zip tarball name
lanluo-nvidia 4c2f4ef
test
lanluo-nvidia 6238fb5
test
lanluo-nvidia b7ca962
add filegroup to remove duplicated file lists in pkg_tar and pkg_zip
lanluo-nvidia 26c0a14
Merge branch 'main' into lluo/release_windows_zip
lanluo-nvidia 51f0682
rename build_wheels_linux|windows.yml to build_linux|windows.yml
lanluo-nvidia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
name: Release aarch64 Linux wheels and tarball artifacts | ||
|
||
on: | ||
push: | ||
tags: | ||
# NOTE: Binary build pipelines should only get triggered on release candidate builds | ||
# Release candidate tags look like: v1.11.0-rc1 | ||
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ | ||
workflow_dispatch: | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
packages: write | ||
|
||
jobs: | ||
generate-matrix: | ||
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main | ||
if: ${{ contains(github.event.pull_request.labels.*.name, 'build-release-artifacts') || startsWith(github.event.ref, 'refs/tags/v') }} | ||
with: | ||
package-type: wheel | ||
os: linux-aarch64 | ||
test-infra-repository: pytorch/test-infra | ||
test-infra-ref: main | ||
with-rocm: false | ||
with-cpu: false | ||
|
||
generate-release-tarball-matrix: | ||
needs: [generate-matrix] | ||
outputs: | ||
matrix: ${{ steps.generate.outputs.matrix }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: pytorch/tensorrt | ||
- name: Generate release matrix | ||
id: generate | ||
run: | | ||
set -eou pipefail | ||
MATRIX_BLOB=${{ toJSON(needs.generate-matrix.outputs.matrix) }} | ||
MATRIX_BLOB="$(python3 .github/scripts/generate-release-matrix.py --tarball_matrix "${MATRIX_BLOB}")" | ||
echo "${MATRIX_BLOB}" | ||
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}" | ||
|
||
release-cxx11-tarball-artifacts: | ||
needs: [generate-release-tarball-matrix] | ||
name: Release aarch64 torch-tensorrt cxx11 tarball artifacts | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- repository: pytorch/tensorrt | ||
package-name: torch_tensorrt | ||
pre-script: packaging/pre_build_script.sh | ||
env-var-script: packaging/env_vars.txt | ||
post-script: packaging/post_build_script.sh | ||
smoke-test-script: packaging/smoke_test_script.sh | ||
is-release-tarball: "true" | ||
uses: ./.github/workflows/build_wheels_linux.yml | ||
with: | ||
repository: ${{ matrix.repository }} | ||
ref: "" | ||
test-infra-repository: pytorch/test-infra | ||
test-infra-ref: main | ||
build-matrix: ${{ needs.generate-release-tarball-matrix.outputs.matrix }} | ||
pre-script: ${{ matrix.pre-script }} | ||
env-var-script: ${{ matrix.env-var-script }} | ||
post-script: ${{ matrix.post-script }} | ||
package-name: ${{ matrix.package-name }} | ||
smoke-test-script: ${{ matrix.smoke-test-script }} | ||
trigger-event: ${{ github.event_name }} | ||
is-release-tarball: true | ||
architecture: "aarch64" | ||
|
||
generate-release-wheel-matrix: | ||
needs: [generate-matrix] | ||
outputs: | ||
matrix: ${{ steps.generate.outputs.matrix }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: pytorch/tensorrt | ||
- name: Generate release matrix | ||
id: generate | ||
run: | | ||
set -eou pipefail | ||
MATRIX_BLOB=${{ toJSON(needs.generate-matrix.outputs.matrix) }} | ||
MATRIX_BLOB="$(python3 .github/scripts/generate-release-matrix.py --wheel_matrix "${MATRIX_BLOB}")" | ||
echo "${MATRIX_BLOB}" | ||
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}" | ||
|
||
release-wheel-artifacts: | ||
name: Release aarch64 torch-tensorrt wheel artifacts | ||
needs: [generate-release-wheel-matrix] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- repository: pytorch/tensorrt | ||
package-name: torch_tensorrt | ||
pre-script: packaging/pre_build_script.sh | ||
env-var-script: packaging/env_vars.txt | ||
post-script: packaging/post_build_script.sh | ||
smoke-test-script: packaging/smoke_test_script.sh | ||
is-release-wheel: true | ||
uses: ./.github/workflows/build_wheels_linux.yml | ||
with: | ||
repository: ${{ matrix.repository }} | ||
ref: "" | ||
test-infra-repository: pytorch/test-infra | ||
test-infra-ref: main | ||
build-matrix: ${{ needs.generate-release-wheel-matrix.outputs.matrix }} | ||
pre-script: ${{ matrix.pre-script }} | ||
env-var-script: ${{ matrix.env-var-script }} | ||
post-script: ${{ matrix.post-script }} | ||
package-name: ${{ matrix.package-name }} | ||
smoke-test-script: ${{ matrix.smoke-test-script }} | ||
trigger-event: ${{ github.event_name }} | ||
is-release-wheel: true | ||
architecture: "aarch64" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-aarch64-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }} | ||
cancel-in-progress: true |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.