Skip to content

Commit

Permalink
cicd: Added build-tasks input
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed Jun 13, 2024
1 parent 84115f2 commit 1b938f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
version:
description: 'Release version'
required: true
build-tasks:
description: 'Build tasks'
default: 'build aggregateTestReports aggregateJacocoReport publish'
required: false
type: string

permissions:
actions: write
Expand Down Expand Up @@ -41,6 +46,7 @@ jobs:
uses: redis/riot/.github/workflows/step-jlink.yml@main
with:
project-version: ${{ needs.precheck.outputs.version }}
tasks: ${{ github.event.inputs.build-tasks }}

release:
name: Release
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/step-jlink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
project-version:
required: true
type: string
tasks:
default: 'build aggregateTestReports aggregateJacocoReport publish'
required: false
type: string
secrets:
codecov-token:
required: false
Expand Down Expand Up @@ -38,7 +42,7 @@ jobs:
echo ${{ inputs.project-version }} > VERSION
- name: Build
run: ./gradlew -Prelease=true -PreproducibleBuild=true build aggregateTestReports aggregateJacocoReport publish -S
run: ./gradlew -Prelease=true -PreproducibleBuild=true ${{ inputs.tasks }} -S

- name: Upload test reports
if: failure()
Expand Down

0 comments on commit 1b938f1

Please sign in to comment.