]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: switch to native ARM GitHub runners
authorJo Zzsi <jozzsicsataban@gmail.com>
Fri, 17 Jan 2025 13:22:06 +0000 (08:22 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Fri, 17 Jan 2025 15:58:00 +0000 (10:58 -0500)
See https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/

.github/workflows/container-extra.yml
.github/workflows/integration.yml

index 4ae071dd052e6b8e86960d098e874ea5542df0dd..610b4b5388125f1000a066583dbe57c6ce1542ba 100644 (file)
@@ -71,7 +71,7 @@ jobs:
     arm64:
         if: github.repository == 'dracut-ng/dracut-ng' || vars.CONTAINER == 'enabled'
         name: ${{ matrix.config.tag }} on ${{ matrix.config.platform }}
-        runs-on: ubuntu-latest
+        runs-on: ubuntu-24.04-arm
         concurrency:
             group: arm64-${{ github.workflow }}-${{ github.ref }}-${{ matrix.config.dockerfile }}
             cancel-in-progress: true
@@ -82,10 +82,6 @@ jobs:
                     - {dockerfile: 'Dockerfile-debian', tag: 'debian-arm64:latest', platform: 'linux/arm64'}
                     - {dockerfile: 'Dockerfile-fedora', tag: 'fedora-arm64:latest', platform: 'linux/arm64'}
         steps:
-            - name: Set up QEMU
-              uses: docker/setup-qemu-action@v3
-              with:
-                  platforms: ${{ matrix.config.platform }}
             - name: Check out the repo
               uses: actions/checkout@v4
             - name: Set up Docker Buildx
index 557f4d1e1c5e4f3228d06732450e01b5f40bd510..6f46e38d2db79a39424e6197be81b980c9a4e1ac 100644 (file)
@@ -154,7 +154,7 @@ jobs:
     arm64:
         needs: basic
         name: ${{ matrix.test }} on ${{ matrix.container }} on arm64
-        runs-on: ubuntu-latest
+        runs-on: ubuntu-24.04-arm
         timeout-minutes: 20
         concurrency:
             group: arm64-${{ github.workflow }}-${{ github.ref }}-${{ matrix.container }}-${{ matrix.test }}
@@ -167,15 +167,14 @@ jobs:
                     - fedora-arm64
                 test:
                     - "80"
+        container:
+            image: ghcr.io/dracut-ng/${{ matrix.container }}
+            options: '--privileged'
         steps:
-            - name: Set up QEMU
-              uses: docker/setup-qemu-action@v3
-              with:
-                  platforms: 'linux/arm64'
             - name: "Checkout Repository"
               uses: actions/checkout@v4
             - name: "${{ matrix.container }} TEST-${{ matrix.test }}"
-              run: docker run --platform linux/arm64 '--device=/dev/kvm' -v $PWD:/w ghcr.io/dracut-ng/${{ matrix.container }} /w/test/test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}
+              run: ./test/test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}
     network:
         needs: basic
         # all nfs based on default networking