Test only(Do not review): one main workflow, if fast feed back loop is success then trigger all other workflows #4
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
name: Lan test workflow main | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- nightly | ||
- release/* | ||
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 | ||
with: | ||
package-type: wheel | ||
os: linux | ||
test-infra-repository: pytorch/test-infra | ||
test-infra-ref: main | ||
with-rocm: false | ||
with-cpu: false | ||
filter-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 matrix | ||
id: generate | ||
run: | | ||
set -eou pipefail | ||
MATRIX_BLOB=${{ toJSON(needs.generate-matrix.outputs.matrix) }} | ||
MATRIX_BLOB="$(python3 .github/scripts/filter-matrix.py --matrix "${MATRIX_BLOB}")" | ||
echo "${MATRIX_BLOB}" | ||
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}" | ||
trigger-linux-test: | ||
needs: [filter-matrix] | ||
permissions: | ||
id-token: write | ||
contents: read | ||
packages: write | ||
uses: ./.github/workflows/build-test-linux-x86_64.yml | ||
trigger-windows-test: | ||
needs: [filter-matrix] | ||
permissions: | ||
id-token: write | ||
contents: read | ||
packages: write | ||
uses: ./.github/workflows/build-test-windows.yml | ||
Check failure on line 67 in .github/workflows/build-test-all.yml
|
||
wait-all-jobs: | ||
needs: [trigger-linux-test, trigger-windows-test] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for all jobs to complete | ||
run: | | ||
echo "Waiting for all jobs to complete..." | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }} | ||
cancel-in-progress: true |