Skip to content

Update GH Actions to latest versions, fix deprecation warning#186

Merged
acrespo merged 2 commits into
masterfrom
update-node-js-github-actions
May 5, 2026
Merged

Update GH Actions to latest versions, fix deprecation warning#186
acrespo merged 2 commits into
masterfrom
update-node-js-github-actions

Conversation

@acrespo
Copy link
Copy Markdown
Member

@acrespo acrespo commented Apr 28, 2026

Summary

Update all GitHub Actions in build-release.yml and pr.yml to their latest versions.
Actions are pinned by commit SHA for reproducibility.

Action Old New Release notes
actions/checkout v4.1.1 v6.0.2 https://github.com/actions/checkout/releases/tag/v6.0.2
docker/setup-buildx-action v3.0.0 v4.0.0 https://github.com/docker/setup-buildx-action/releases/tag/v4.0.0
docker/build-push-action v5.0.0 v7.1.0 https://github.com/docker/build-push-action/releases/tag/v7.1.0
actions/upload-artifact v4.3.3 v7.0.1 https://github.com/actions/upload-artifact/releases/tag/v7.0.1
gradle/actions/wrapper-validation v3 v6.1.0 https://github.com/gradle/actions/releases/tag/v6.1.0

Test plan

Warnings about node 16 deprecation and moving to node24.

Content:
Node.js 20 actions are deprecated. The following actions
are running on Node.js 20 and may not work as expected:
actions/checkout@b4ffde6,
actions/upload-artifact@6546280,
docker/build-push-action@0565240,
docker/setup-buildx-action@f95db51.
Actions will be forced to run with Node.js 24 by default starting
June 2nd, 2026. Node.js 20 will be removed from the runner on
September 16th, 2026. Please check if updated versions of these
actions are available that support Node.js 24. To opt into
Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true
environment variable on the runner or in your workflow file.
Once Node.js 24 becomes the default, you can temporarily opt
out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true.

See:
https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
@acrespo acrespo self-assigned this Apr 28, 2026
@champo champo removed their request for review April 29, 2026 12:58
Copy link
Copy Markdown
Contributor

@rocket-muun rocket-muun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@acrespo
Copy link
Copy Markdown
Member Author

acrespo commented Apr 29, 2026

The pr GH action is failing with an ugly:

#27 [stage-4 3/5] COPY --from=build /src/android/apolloui/build/outputs/apk/prod/release/apolloui-prod-x86-release-unsigned.apk apolloui-prod-x86-release-unsigned.apk
#27 ERROR: failed to copy files: copy file range failed: no space left on device

As per this, it seems we're hitting the limit disk space allowed for the runner. They mention this action to free disk space.

Apparently, the runner ran out of disk space. This is common with Docker-based Android builds — the GitHub-hosted runners come packed with pre-installed software that eats up space. Since our Android build happens entirely inside Docker, the host's pre-installed Android SDK, .NET, Haskell, etc. are all dead weight.

The simplest fix is adding a cleanup step at the top of each job — no extra action needed, just rm:

     - name: Free disk space                                                                                                                   
              run: |                                                                                                                                  
                sudo rm -rf /usr/share/dotnet                                                                                                       
                sudo rm -rf /usr/local/lib/android                                                                                                  
                sudo rm -rf /opt/ghc                                                                                                                
                sudo rm -rf /opt/hostedtoolcache/CodeQL      

I'm going with the rm approach to avoid adding an extra dependency.

The Docker build was running out of disk space on the GitHub Actions
runner. Remove pre-installed software (~30 GB) that the build doesn't
need, since it runs entirely inside Docker.
@acrespo acrespo requested a review from rocket-muun April 29, 2026 21:40
Copy link
Copy Markdown
Contributor

@rocket-muun rocket-muun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@acrespo acrespo merged commit 5f04a54 into master May 5, 2026
1 check passed
@acrespo acrespo deleted the update-node-js-github-actions branch May 5, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants