Skip to content

Commit 1edfc5b

Browse files
authored
Fix GitHub Actions CI (#208)
- use ubuntu-latest since ubuntu-20.04 stopped working 2025-04-15 - sync changes made to .github/actions/tune-runner-vm/action.yml - use latest setup-gradle
1 parent a93b096 commit 1edfc5b

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/actions/tune-runner-vm/action.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ runs:
5353
# tune filesystem mount options, https://www.kernel.org/doc/Documentation/filesystems/ext4.txt
5454
# commit=999999, effectively disables automatic syncing to disk (default is every 5 seconds)
5555
# nobarrier/barrier=0, loosen data consistency on system crash (no negative impact to empheral CI nodes)
56-
sudo mount -o remount,nodiscard,commit=999999,barrier=0 /
57-
sudo mount -o remount,nodiscard,commit=999999,barrier=0 /mnt
56+
sudo mount -o remount,nodiscard,commit=999999,barrier=0 / || true
57+
sudo mount -o remount,nodiscard,commit=999999,barrier=0 /mnt || true
5858
# disable discard/trim at device level since remount with nodiscard doesn't seem to be effective
5959
# https://www.spinics.net/lists/linux-ide/msg52562.html
6060
for i in /sys/block/sd*/queue/discard_max_bytes; do
@@ -77,12 +77,6 @@ runs:
7777
# stop Azure Linux agent to save RAM
7878
sudo systemctl stop walinuxagent.service || true
7979
80-
# enable docker experimental mode which is
81-
# required for using "docker build --squash" / "-Ddocker.squash=true"
82-
daemon_json="$(sudo cat /etc/docker/daemon.json | jq '.experimental = true')"
83-
echo "$daemon_json" | sudo tee /etc/docker/daemon.json
84-
# restart docker daemon
85-
sudo systemctl restart docker
8680
echo '::endgroup::'
8781
8882
# show memory

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ concurrency:
3232
jobs:
3333
build:
3434

35-
runs-on: ubuntu-20.04
35+
runs-on: ubuntu-latest
3636

3737
steps:
3838
- uses: actions/checkout@v4
@@ -47,7 +47,7 @@ jobs:
4747
java-version: 17
4848

4949
- name: Setup Gradle
50-
uses: gradle/actions/setup-gradle@v3
50+
uses: gradle/actions/setup-gradle@v4
5151

5252
- name: Check with Gradle
5353
run: ./gradlew rat licenseCheck javadoc check

0 commit comments

Comments
 (0)