chore: update CC to rc.56.hotfix.2 [WPB-8592] 🍒 🍒 #91
Workflow file for this run
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
name: Benchmark Checks | |
on: | |
merge_group: | |
pull_request: | |
types: [ opened, synchronize ] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
detekt: | |
uses: ./.github/workflows/codestyle.yml | |
benchmarks-check: | |
needs: [ detekt ] | |
runs-on: ubuntu-latest | |
container: wirebot/cryptobox:1.4.0 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Validate Gradle wrapper | |
uses: gradle/actions/wrapper-validation@v3 | |
- name: Run Benchmarks | |
run: ./gradlew benchmark | |
- name: Generate HTML Report | |
run: ./gradlew jmhReport | |
- name: Archive Reports | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: benchmarks-reports | |
path: ./benchmarks/build/reports/benchmarks/** | |
- name: Create Benchmark Table | |
id: benchmark-table | |
uses: boswelja/[email protected] | |
with: | |
benchmark-results: ./benchmarks/build/reports/benchmarks/main/**/jvm.json | |
- name: Post Results | |
run: | | |
echo '## Benchmarks results ⏱️' >> $GITHUB_STEP_SUMMARY | |
echo '${{steps.benchmark-table.outputs.benchmark-table}}️' >> $GITHUB_STEP_SUMMARY | |
- name: Cleanup Gradle Cache | |
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. | |
# Restoring these files from a GitHub Actions cache might cause problems for future builds. | |
run: | | |
rm -f ~/.gradle/caches/modules-2/modules-2.lock | |
rm -f ~/.gradle/caches/modules-2/gc.properties |