]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
ci: Improve order of linux binary jobs master
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 19 Apr 2026 11:46:03 +0000 (13:46 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 19 Apr 2026 12:25:24 +0000 (14:25 +0200)
.github/workflows/build.yaml

index a6a0b6de9ab7ec54d8a41a9db111a37412ddc04e..588b406f772de313e1229f9480078c40f35cc396 100644 (file)
@@ -289,6 +289,33 @@ jobs:
           path: install/ccache
           retention-days: 3
 
+  build_linux_riscv64_binary_glibc:
+    timeout-minutes: 30
+    name: Linux riscv64 binary (glibc)
+    runs-on: ubuntu-22.04
+    strategy:
+      fail-fast: false
+    steps:
+      - name: Prepare environment
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y g++-riscv64-linux-gnu libc6-dev-arm64-cross
+      - name: Get source
+        uses: actions/checkout@v4
+      - name: Build binary
+        env:
+          CMAKE_GENERATOR: Ninja
+          CMAKE_PARAMS: |
+            -D CMAKE_TOOLCHAIN_FILE=../toolchains/riscv64-linux-gnu.cmake
+            -D CMAKE_EXE_LINKER_FLAGS_INIT=-static-libstdc++
+        run: ci/build-binary
+      - name: Upload binary
+        uses: actions/upload-artifact@v4
+        with:
+          name: linux-riscv64-glibc-binary
+          path: install/ccache
+          retention-days: 3
+
   build_linux_x86_64_binary_glibc:
     timeout-minutes: 30
     name: Linux x86_64 binary (glibc)
@@ -327,33 +354,6 @@ jobs:
           path: install/ccache
           retention-days: 3
 
-  build_linux_riscv64_binary_glibc:
-    timeout-minutes: 30
-    name: Linux riscv64 binary (glibc)
-    runs-on: ubuntu-22.04
-    strategy:
-      fail-fast: false
-    steps:
-      - name: Prepare environment
-        run: |
-          sudo apt-get update
-          sudo apt-get install -y g++-riscv64-linux-gnu libc6-dev-arm64-cross
-      - name: Get source
-        uses: actions/checkout@v4
-      - name: Build binary
-        env:
-          CMAKE_GENERATOR: Ninja
-          CMAKE_PARAMS: |
-            -D CMAKE_TOOLCHAIN_FILE=../toolchains/riscv64-linux-gnu.cmake
-            -D CMAKE_EXE_LINKER_FLAGS_INIT=-static-libstdc++
-        run: ci/build-binary
-      - name: Upload binary
-        uses: actions/upload-artifact@v4
-        with:
-          name: linux-riscv64-glibc-binary
-          path: install/ccache
-          retention-days: 3
-
   build_linux_musl_static_binary:
     timeout-minutes: ${{ matrix.qemu && 60 || 30 }}
     name: Linux ${{ matrix.arch }} binary (musl static)
@@ -364,11 +364,11 @@ jobs:
         include:
           - arch: aarch64
             runner: ubuntu-22.04-arm
-          - arch: x86_64
-            runner: ubuntu-22.04
           - arch: riscv64
             runner: ubuntu-22.04
             qemu: true
+          - arch: x86_64
+            runner: ubuntu-22.04
     steps:
       - name: Get source
         uses: actions/checkout@v4