Skip to content

Commit

Permalink
baseline workflow uses proper version
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsitoPuglisi committed Jun 28, 2024
1 parent 131ac4b commit 6e726d9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/generate_baseline_profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ name: Generate Baseline Profile

on:
workflow_dispatch:
inputs:
sdk_version:
description: 'SDK version'
required: false
workflow_call:
inputs:
sdk_version:
required: false
type: string
secrets:
token:
required: true
Expand Down Expand Up @@ -67,6 +75,12 @@ jobs:
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3

- name: Set Version
if: ${{ github.event.inputs.sdk_version != "" }}
run: |
cd android-sdk-benchmark
sed -i -r "s#swazzler_version = ([^\']+)#swazzler_version = ${{ github.event.inputs.next_version }}#" gradle.properties
- name: Generate Baseline Profile
run: |
cd android-sdk-benchmark
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/pre-release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,17 @@ jobs:
with:
next_version: ${{ github.event.inputs.next_version }}

baseline-profile:
name: Generate Baseline Profile
needs: release-branch
uses: ./.github/workflows/generate_baseline_profile.yml
secrets: inherit
with:
version_of_rc: ${{ github.event.inputs.version_to_release }}

release-candate:
name: Create Release Candidate
needs: release-branch
needs: baseline-profile
uses: ./.github/workflows/build-rc-workflow.yml
secrets: inherit
with:
Expand Down

0 comments on commit 6e726d9

Please sign in to comment.