diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4cb757375070e8e7c7b16ea4b8b1aee347f7255c..ee5a2c55bedbbe39f6f8d9727eabb4a32a4f7547 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -15,7 +15,7 @@ jobs:
     # well on Windows or Mac.  You can convert this to a matrix build if you need
     # cross-platform coverage.
     # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
-    runs-on: ubuntu-20.04
+    runs-on: ubuntu-latest
 
     steps:
     - uses: actions/checkout@v4