-
Notifications
You must be signed in to change notification settings - Fork 6
CI: Create a nightly release workflow #156
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
riley-dixon
merged 8 commits into
ROCm:develop
from
riley-dixon:rildixon/ci-nightly-release
Jan 20, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9cbe791
CI: Start new workflow that runs once a night.
riley-dixon d33e796
CI: Add job to create and publish the nightly release.
riley-dixon 3f46dd0
CI: Delete the 'nightly' release if it already exists.
riley-dixon d062d97
CI: Add a note to the nightly release.
riley-dixon 7960245
CI: Add manual trigger to nightly release workflow.
riley-dixon 4776efc
CI: Convert nightly build jobs to a matrix
riley-dixon 9110327
CI: Pass in the absolute path of the current ROCm install.
riley-dixon ab705ba
Merge branch 'develop' of github.com:riley-dixon/hipFile-test into ri…
riley-dixon 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: AIS_nightly_build | ||
| run-name: Create a nightly build of hipFile | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| platform: | ||
| required: true | ||
| type: string | ||
| outputs: | ||
| ais_hipfile_pkg_dev_filename: | ||
| description: "Filename for the hipFile development DEB/RPM package." | ||
| value: ${{ jobs.build_hipFile.outputs.ais_hipfile_pkg_dev_filename }} | ||
| ais_hipfile_pkg_filename: | ||
| description: "Filename for the hipFile runtime DEB/RPM package." | ||
| value: ${{ jobs.build_hipFile.outputs.ais_hipfile_pkg_filename }} | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| jobs: | ||
| get_AIS_CI_image: | ||
| # This runs on develop so will always use latest. | ||
| uses: ./.github/workflows/build-ais-ci-image.yml | ||
| with: | ||
| dockerfile_changed: false | ||
| platform: ${{ inputs.platform }} | ||
| build_hipFile: | ||
| if: ${{ !cancelled() && needs.get_AIS_CI_image.outputs.ci_image_build_satisfied == 'true' }} | ||
| needs: [get_AIS_CI_image] | ||
| uses: ./.github/workflows/build-ais.yml | ||
| with: | ||
| ci_image: ${{ needs.get_AIS_CI_image.outputs.ci_image }} | ||
| cxx_compiler: amdclang++ | ||
| platform: ${{ inputs.platform }} | ||
| upload_artifacts: true |
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,76 @@ | ||
| name: nightly-release | ||
| run-name: Create a nightly release of hipFile | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "0 0 * * *" | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| jobs: | ||
| # We can use a matrix job if we don't need to reference the outputs | ||
| # of each individual job within the matrix. | ||
| # This relies on using a glob pattern to reference the build artifacts. | ||
| build_nightly_hipFile: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| platform: | ||
| - rocky | ||
| - suse | ||
| - ubuntu | ||
| uses: ./.github/workflows/nightly-build-ais.yml | ||
| with: | ||
| platform: ${{ matrix.platform }} | ||
| publish_release: | ||
| needs: [build_nightly_hipFile] | ||
| runs-on: [ubuntu-24.04] | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - name: Fetch hipFile Repository | ||
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1 | ||
| - name: Download hipFile packages | ||
| uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 #v7.0.0 | ||
| with: | ||
| merge-multiple: true | ||
| # Currently only vetted for ubuntu, suse, and rocky. | ||
| # Best effort to only match runtime and development packages while | ||
| # avoiding any extras/testing packages. | ||
| pattern: hipfile{[-_][0-9],-dev_[0-9],-devel-[0-9]}*.{deb,rpm} | ||
|
riley-dixon marked this conversation as resolved.
|
||
| - name: List Releases | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| gh release list | ||
| - name: Test if 'nightly' already exists. | ||
| id: nightly-exists | ||
| continue-on-error: true | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| gh release view nightly | ||
| - name: Delete 'nightly' if it already exists. | ||
| if: ${{ steps.nightly-exists.outcome == 'success' }} | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| gh release delete nightly --yes | ||
| - name: Create a release | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| shopt -s nullglob | ||
| gh release create \ | ||
| --notes " | ||
| Nightly Build as of: $(date) | ||
|
|
||
| The packages contained here are not suitable for production workloads. | ||
| These packages are currently tied to the current version of our CI (6.4.2). | ||
| " \ | ||
| --prerelease \ | ||
| --target develop \ | ||
| --title Nightly \ | ||
| nightly \ | ||
| hipfile{[-_][0-9],-dev_[0-9],-devel-[0-9]}*.{deb,rpm} | ||
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.