Skip to content

Commit 848acd0

Browse files
committed
infra: testing out GHA CI
Signed-off-by: Naren Dasan <naren@narendasan.com> Signed-off-by: Naren Dasan <narens@nvidia.com>
1 parent c157dc8 commit 848acd0

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build Linux Wheels
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- nightly
8+
- main
9+
- release/*
10+
tags:
11+
# NOTE: Binary build pipelines should only get triggered on release candidate builds
12+
# Release candidate tags look like: v1.11.0-rc1
13+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
14+
workflow_dispatch:
15+
16+
jobs:
17+
generate-matrix:
18+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
19+
with:
20+
package-type: wheel
21+
os: linux
22+
test-infra-repository: pytorch/test-infra
23+
test-infra-ref: main
24+
build:
25+
needs: generate-matrix
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
include:
30+
- repository: pytorch/tensorrt
31+
pre-script: packaging/pre_build_script.sh
32+
post-script: ""
33+
smoke-test-script: ""
34+
package-name: torch-tensorrt
35+
name: ${{ matrix.repository }}
36+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
37+
with:
38+
repository: ${{ matrix.repository }}
39+
ref: ""
40+
test-infra-repository: pytorch/test-infra
41+
test-infra-ref: main
42+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
43+
pre-script: ${{ matrix.pre-script }}
44+
post-script: ${{ matrix.post-script }}
45+
package-name: ${{ matrix.package-name }}
46+
smoke-test-script: ${{ matrix.smoke-test-script }}
47+
trigger-event: ${{ github.event_name }}
48+
with-cuda: enable
49+
secrets:
50+
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
51+
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}

packaging/post_build_script.sh

Whitespace-only changes.

packaging/pre_build_script.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
# Install dependencies
4+
TRT_VERSION=$(python3 -c "import versions; versions.tensorrt_version()")
5+
yum install -y ninja-build tensorrt-${TRT_VERSION}.*
6+
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-amd64 \
7+
&& mv bazelisk-linux-amd64 /usr/bin/bazel \
8+
&& chmod +x /usr/bin/bazel

0 commit comments

Comments
 (0)