forked from rapidsai/devcontainers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to automatically release when PRs are merged (rapidsai#311)
* add release-all.yml workflow to release on push to branch-* and release tags * support only building a subset of images when pushing, and optionally when building manually * rename release.yaml to release-linux.yml
- Loading branch information
Showing
14 changed files
with
247 additions
and
110 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -3,9 +3,15 @@ name: feature-matrix | |
description: Determine the feature matrix | ||
|
||
inputs: | ||
base_sha: | ||
type: string | ||
default: "" | ||
full_matrix: | ||
type: string | ||
default: 'false' | ||
default: false | ||
file_patterns: | ||
type: string | ||
default: "" | ||
|
||
outputs: | ||
features: | ||
|
@@ -16,25 +22,16 @@ outputs: | |
runs: | ||
using: composite | ||
steps: | ||
- id: get-pr-info | ||
if: inputs.full_matrix != 'true' | ||
name: Get PR target branch info | ||
uses: ./.github/actions/get-pr-info | ||
|
||
- name: Check if files changed | ||
- id: changes | ||
name: Check if files changed | ||
if: inputs.full_matrix != 'true' | ||
id: changes | ||
uses: tj-actions/[email protected] | ||
with: | ||
base_sha: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.sha }} | ||
base_sha: "${{ inputs.base_sha }}" | ||
since_last_remote_commit: "${{ inputs.base_sha == '' && 'true' || 'false' }}" | ||
files: | | ||
features/src/** | ||
features/test/** | ||
.github/workflows/test.yml | ||
.github/actions/feature-matrix/action.sh | ||
.github/actions/feature-matrix/action.yml | ||
.github/workflows/build-and-test-feature.yml | ||
.github/actions/build-and-test-feature/action.yml | ||
${{ inputs.file_patterns }} | ||
- name: Report changes | ||
if: inputs.full_matrix != 'true' | ||
|
This file contains 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 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 |
---|---|---|
|
@@ -3,6 +3,9 @@ name: image-matrix | |
description: Determine the image matrix | ||
|
||
inputs: | ||
base_sha: | ||
type: string | ||
default: "" | ||
features: | ||
type: string | ||
required: false | ||
|
@@ -11,7 +14,10 @@ inputs: | |
required: false | ||
full_matrix: | ||
type: string | ||
default: 'true' | ||
default: true | ||
file_patterns: | ||
type: string | ||
default: "" | ||
|
||
outputs: | ||
linux: | ||
|
@@ -22,28 +28,18 @@ outputs: | |
runs: | ||
using: composite | ||
steps: | ||
- id: get-pr-info | ||
if: inputs.full_matrix != 'true' | ||
name: Get PR target branch info | ||
uses: ./.github/actions/get-pr-info | ||
|
||
- name: Check if files changed | ||
- id: changes | ||
name: Check if files changed | ||
if: inputs.full_matrix != 'true' | ||
id: changes | ||
uses: tj-actions/[email protected] | ||
with: | ||
base_sha: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.sha }} | ||
base_sha: "${{ inputs.base_sha }}" | ||
since_last_remote_commit: "${{ inputs.base_sha == '' && 'true' || 'false' }}" | ||
files: | | ||
image/* | ||
windows/** | ||
matrix.yml | ||
.github/actions/build-linux-image/* | ||
.github/actions/build-windows-image/* | ||
.github/actions/image-matrix/* | ||
.github/actions/test-windows-image/* | ||
.github/workflows/test.yml | ||
.github/workflows/build-test-and-push-linux-image.yml | ||
.github/workflows/build-test-and-push-windows-image.yml | ||
windows/** | ||
image/.devcontainer/* | ||
${{ inputs.file_patterns }} | ||
- name: Report changes | ||
if: inputs.full_matrix != 'true' | ||
|
This file contains 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 |
---|---|---|
|
@@ -23,11 +23,17 @@ jobs: | |
|| echo "ok=false" | tee -a $GITHUB_OUTPUT; | ||
build-all-rapids-repos: | ||
name: Build all RAPIDS repos | ||
name: RAPIDS | ||
if: needs.check-event.outputs.ok == 'true' | ||
needs: check-event | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
permissions: | ||
actions: read | ||
packages: read | ||
id-token: write | ||
contents: read | ||
pull-requests: read | ||
with: | ||
arch: '["amd64"]' | ||
cuda: '["12.0", "12.2"]' | ||
|
This file contains 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 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 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 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 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 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,69 @@ | ||
name: Release Linux | ||
|
||
concurrency: | ||
group: release-linux-from-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
features-matrix: | ||
name: Determine features matrix | ||
runs-on: ubuntu-latest | ||
outputs: | ||
features: "${{ steps.matrix.outputs.features }}" | ||
scenarios: "${{ steps.matrix.outputs.scenarios }}" | ||
steps: | ||
- name: "Checkout ${{ github.repository }}" | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
|
||
- name: Copy common scripts into features | ||
uses: ./.github/actions/copy-common-scripts | ||
|
||
- id: matrix | ||
name: Determine features matrix | ||
uses: ./.github/actions/feature-matrix | ||
with: | ||
full_matrix: true | ||
|
||
image-matrix: | ||
name: Determine image matrix | ||
needs: features-matrix | ||
runs-on: ubuntu-latest | ||
outputs: | ||
linux: ${{ steps.matrix.outputs.linux }} | ||
steps: | ||
- name: Checkout ${{ github.repository }} | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
|
||
- id: matrix | ||
name: Determine image matrix | ||
uses: ./.github/actions/image-matrix | ||
with: | ||
features: "${{ needs.features-matrix.outputs.features }}" | ||
scenarios: "${{ needs.features-matrix.outputs.scenarios }}" | ||
full_matrix: true | ||
|
||
release-linux: | ||
if: needs.image-matrix.outputs.linux != '{"include":[]}' | ||
name: ${{ matrix.name }} | ||
needs: image-matrix | ||
secrets: inherit | ||
uses: ./.github/workflows/build-test-and-push-linux-image.yml | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{ fromJSON(needs.image-matrix.outputs.linux) }} | ||
with: | ||
push: true | ||
os: "${{ matrix.os }}" | ||
features: "${{ toJSON(matrix.features) }}" | ||
container_env: "${{ toJSON(matrix.env) }}" | ||
repo: "${{ vars.DOCKERHUB_REPOSITORY || github.repository }}" |
This file contains 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
Oops, something went wrong.