-
-
Notifications
You must be signed in to change notification settings - Fork 54
chore: Custom GitHub runner image with Unreal docker pre-installed #1340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
3609952
Add UE GitHub image generation workflow
tustanivsky e64bce1
Rename workflow
tustanivsky 8f56408
Temp push trigger
tustanivsky eb77745
Test images size
tustanivsky f717d3e
Test clean disk
tustanivsky 8c5dfb4
Test linux custom image build
tustanivsky 1acf660
Test new large runners
tustanivsky 016eb23
Test
tustanivsky fa35d44
Remove snapshot from Windows image creation job
tustanivsky fcbe304
Add snapshot to create-image job in workflow
tustanivsky 50d8c61
Drop 5.2 and 5.3 for Windows (size optimization)
tustanivsky 8e81b12
Switch Linux build to Android image which includes both Linux and And…
tustanivsky 81e6750
Add dedicated image generation for Android
tustanivsky 57291d7
Add UE 5.8
tustanivsky 9689405
Test win custom image
tustanivsky 3cab960
Merge branch 'main' into chore/custom-ue-image
tustanivsky c7e1f18
Test
tustanivsky 2f68f92
Merge branch 'chore/custom-ue-image' of github.com:getsentry/sentry-u…
tustanivsky 57e2049
Test Linux
tustanivsky 03bd012
Test bAllCores
tustanivsky 06bd049
Restore Win versions
tustanivsky 90293db
Test Unity build + PCH
tustanivsky 330ab60
Test
tustanivsky a012541
Pass bAllCores to UBT explicitly
tustanivsky 5c5e442
Add custom runner for Android
tustanivsky 7c02d05
Cancel previous PR runs
tustanivsky 0c8e773
Add PR/Full test matrix switch
tustanivsky cfe2a3b
Restore unity build
tustanivsky 26ee66f
Remove redundant cleanup step for linux and android
tustanivsky d6e7120
Bump checkout action
tustanivsky c9d027e
Fix comment
tustanivsky 452b911
Enable unity build conditionally
tustanivsky f4a303d
Merge branch 'main' into chore/custom-ue-image
tustanivsky 9ed6ef1
Add environment for image generation workflows
tustanivsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,50 @@ | ||
| name: Build UE Android runner image | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 6 * * 1' | ||
|
|
||
| env: | ||
| REGISTRY: ghcr.io | ||
|
|
||
| jobs: | ||
| create-image: | ||
| name: Create Android image with UE Docker images | ||
| runs-on: unreal-image-creating-runner-linux | ||
| snapshot: unreal-image-android | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: read | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
|
|
||
| - name: Free up disk space | ||
| run: ./scripts/clean-storage-linux.sh | ||
|
|
||
| - name: Log in to GitHub package registry | ||
| uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 | ||
| with: | ||
| registry: ${{ env.REGISTRY }} | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| # Android images carry the Android SDK/NDK platform files and are large, so the set is limited to | ||
| # the versions Android is actually tested on (5.4+) | ||
| - name: Pull Unreal Engine Docker images | ||
| run: | | ||
| set -e | ||
| tags=("5.4" "5.5" "5.6" "5.7" "5.8") | ||
| for tag in "${tags[@]}"; do | ||
| echo "=== Pulling ${{ env.REGISTRY }}/getsentry/unreal-docker:${tag}-android ===" | ||
| docker pull "${{ env.REGISTRY }}/getsentry/unreal-docker:${tag}-android" | ||
| echo "=== Free disk space after pulling ${tag}-android ===" | ||
| df -h / | ||
| done | ||
|
|
||
| - name: Verify pulled images | ||
| run: | | ||
| docker images --filter "reference=${{ env.REGISTRY }}/getsentry/unreal-docker" --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}" |
This file contains hidden or 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,48 @@ | ||
| name: Build UE Linux runner image | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
sentry-warden[bot] marked this conversation as resolved.
|
||
| schedule: | ||
| - cron: '0 6 * * 1' | ||
|
|
||
| env: | ||
| REGISTRY: ghcr.io | ||
|
|
||
| jobs: | ||
| create-image: | ||
| name: Create Linux image with UE Docker images | ||
| runs-on: unreal-image-creating-runner-linux | ||
| snapshot: unreal-image-linux | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: read | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
|
|
||
| - name: Free up disk space | ||
| run: ./scripts/clean-storage-linux.sh | ||
|
|
||
| - name: Log in to GitHub package registry | ||
| uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 | ||
| with: | ||
| registry: ${{ env.REGISTRY }} | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Pull Unreal Engine Docker images | ||
| run: | | ||
| set -e | ||
| tags=("4.27" "5.2" "5.3" "5.4" "5.5" "5.6" "5.7" "5.8") | ||
| for tag in "${tags[@]}"; do | ||
| echo "=== Pulling ${{ env.REGISTRY }}/getsentry/unreal-docker:${tag}-linux ===" | ||
| docker pull "${{ env.REGISTRY }}/getsentry/unreal-docker:${tag}-linux" | ||
| echo "=== Free disk space after pulling ${tag}-linux ===" | ||
| df -h / | ||
| done | ||
|
|
||
| - name: Verify pulled images | ||
| run: | | ||
| docker images --filter "reference=${{ env.REGISTRY }}/getsentry/unreal-docker" --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}" | ||
This file contains hidden or 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,53 @@ | ||
| name: Build UE Windows runner image | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 6 * * 1' | ||
|
|
||
| env: | ||
| REGISTRY: ghcr.io | ||
|
|
||
| jobs: | ||
| create-image: | ||
| name: Create Windows image with UE Docker images | ||
| runs-on: unreal-image-creating-runner-windows | ||
| snapshot: unreal-image-windows | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: read | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
|
|
||
| - name: Free up disk space | ||
| shell: pwsh | ||
| run: ./scripts/clean-storage-win.ps1 | ||
|
|
||
| - name: Log in to GitHub package registry | ||
| uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 | ||
| with: | ||
| registry: ${{ env.REGISTRY }} | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Pull Unreal Engine Docker images | ||
| shell: pwsh | ||
| run: | | ||
| $tags = @('4.27', '5.5', '5.6', '5.7', '5.8') | ||
| foreach ($tag in $tags) { | ||
| Write-Host "=== Pulling ${{ env.REGISTRY }}/getsentry/unreal-docker:$tag ===" | ||
| docker pull "${{ env.REGISTRY }}/getsentry/unreal-docker:$tag" | ||
| if ($LASTEXITCODE -ne 0) { | ||
| Write-Error "Failed to pull image for tag $tag" | ||
| exit 1 | ||
| } | ||
| Write-Host "=== Free disk space after pulling $tag ===" | ||
| Get-PSDrive -PSProvider FileSystem | Format-Table -AutoSize Name, @{Name='Used(GB)';Expression={[math]::Round($_.Used/1GB,2)}}, @{Name='Free(GB)';Expression={[math]::Round($_.Free/1GB,2)}} | ||
| } | ||
|
|
||
| - name: Verify pulled images | ||
| run: | | ||
| docker images --filter "reference=${{ env.REGISTRY }}/getsentry/unreal-docker" --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}" |
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.