FlyDSL CI #31
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: FlyDSL CI | |
| on: | |
| schedule: | |
| - cron: '0 2 * * *' | |
| workflow_dispatch: | |
| inputs: | |
| skip_tests: | |
| description: 'Skip test job for faster iteration' | |
| type: boolean | |
| default: false | |
| skip_promote: | |
| description: 'Skip promote job (build + test only)' | |
| type: boolean | |
| default: false | |
| docker_image: | |
| description: 'Docker base image for build and test' | |
| type: string | |
| default: "rocm/pytorch:rocm7.2_ubuntu22.04_py3.10_pytorch_release_2.8.0" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/build-whl.yaml | |
| with: | |
| release_type: ${{ github.event_name == 'schedule' && 'nightlies' || 'devreleases' }} | |
| docker_image: ${{ inputs.docker_image || 'rocm/pytorch:rocm7.2_ubuntu22.04_py3.10_pytorch_release_2.8.0' }} | |
| permissions: | |
| id-token: write | |
| contents: read | |
| test: | |
| needs: build | |
| if: ${{ !(inputs.skip_tests || false) }} | |
| uses: ./.github/workflows/test-whl.yaml | |
| with: | |
| docker_image: ${{ inputs.docker_image || 'rocm/pytorch:rocm7.2_ubuntu22.04_py3.10_pytorch_release_2.8.0' }} | |
| permissions: | |
| contents: read | |
| promote: | |
| needs: [build, test] | |
| if: >- | |
| ${{ github.repository_owner == 'ROCm' | |
| && !(inputs.skip_promote || false) }} | |
| uses: ./.github/workflows/promote.yaml | |
| with: | |
| release_type: ${{ github.event_name == 'schedule' && 'nightlies' || 'devreleases' }} | |
| wheel_names: ${{ needs.build.outputs.wheel_names }} | |
| permissions: | |
| id-token: write | |
| contents: read |