-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move profiling into separate workflow and run it on linux as pyroscop…
…e agent does not work on windows
- Loading branch information
Showing
3 changed files
with
89 additions
and
33 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
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,70 @@ | ||
name: 📊 Profile linux | ||
on: | ||
workflow_call: | ||
inputs: | ||
godot-version: | ||
type: string | ||
jvm-version: | ||
type: string | ||
|
||
env: | ||
PYROSCOPE_APPLICATION_NAME: 'godot.benchmarks' | ||
PYROSCOPE_PROFILER_ALLOC: 512k | ||
PYROSCOPE_PROFILER_LOCK: 10ms | ||
PYROSCOPE_SERVER_ADDRESS: ${{ secrets.PYROSCOPE_SERVER_ADDRESS }} | ||
PYROSCOPE_BASIC_AUTH_USER: ${{ secrets.PYROSCOPE_BASIC_AUTH_USER }} | ||
PYROSCOPE_BASIC_AUTH_PASSWORD: ${{ secrets.PYROSCOPE_BASIC_AUTH_PASSWORD }} | ||
|
||
concurrency: | ||
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows_benchmark | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
profile-linux: | ||
runs-on: ubuntu-latest | ||
name: Profile linux | ||
|
||
steps: | ||
- name: Clone Godot Engine | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: godotengine/godot | ||
ref: ${{ inputs.godot-version }} | ||
|
||
- name: Clone Godot JVM module. | ||
uses: actions/checkout@v4 | ||
with: | ||
path: modules/kotlin_jvm | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: adopt-hotspot | ||
java-version: ${{ inputs.jvm-version }} | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
cache-read-only: false | ||
|
||
- name: Download linux editor release | ||
uses: ./.github/actions/download-artifact | ||
with: | ||
name: editor_release_linux_x86_64 | ||
path: './bin' | ||
|
||
- name: Download godot-bootstrap release | ||
uses: ./.github/actions/download-artifact | ||
with: | ||
name: jvm_godot-bootstrap_release | ||
path: './bin' | ||
|
||
- name: Build benchmarks project | ||
run: | | ||
modules/kotlin_jvm/harness/benchmarks/gradlew -p modules/kotlin_jvm/harness/benchmarks/ build -Prelease=true | ||
- name: Profile benchmarks | ||
run: | | ||
cd modules/kotlin_jvm/harness/benchmarks/ | ||
# no embedded jre | ||
./gradlew profileAndUpload | ||
timeout-minutes: 30 |
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