]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: run GETARG test on arm64
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sat, 20 Apr 2024 03:07:40 +0000 (23:07 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sat, 20 Apr 2024 13:19:42 +0000 (09:19 -0400)
This is an easy test to start with as it does not require a VM.

Only set CPU to IvyBridge-v2 for AMD64.

.github/workflows/integration.yml
test/run-qemu
tools/test-github.sh

index 5fbe8913f58b8aa2b1384eac82372346b5d9c432..354dd27ea5e9a5673df0e7447b6f6d61f5eded4f 100644 (file)
@@ -210,3 +210,28 @@ jobs:
 
             -   name: "${{ matrix.container }} TEST-${{ matrix.test }}"
                 run: ./tools/test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}
+    arm64:
+        name: ${{ matrix.test }} on ${{ matrix.container }} on arm64
+        runs-on: ubuntu-latest
+        timeout-minutes: 30
+        concurrency:
+            group: arm64-${{ github.workflow }}-${{ github.ref }}-${{ matrix.container }}-${{ matrix.test }}
+            cancel-in-progress: true
+        strategy:
+            matrix:
+                container: [
+                        "debian",
+                ]
+                test: [
+                        "98",
+                ]
+            fail-fast: false
+        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 --privileged -v /dev:/dev -v $PWD:/w ghcr.io/dracut-ng/${{ matrix.container }} /w/tools/test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}
index 0717aae6ca6659e184418fa34ff2dfdbd432a08a..4936f771bab59d2f48f8cfbc33a1a2f4e729c34a 100755 (executable)
@@ -4,6 +4,13 @@
 
 export PATH=/usr/sbin:/usr/bin:/sbin:/bin
 ARCH="${ARCH-$(uname -m)}"
+
+case "$ARCH" in
+    amd64 | i?86 | x86_64)
+        QEMU_CPU="IvyBridge-v2"
+        ;;
+esac
+
 QEMU_CPU="${QEMU_CPU:-max}"
 
 [[ -x /usr/bin/qemu ]] && BIN=/usr/bin/qemu && ARGS=(-cpu "$QEMU_CPU")
index 0cd4b6ebee07ba3283775d8bc78f37cc54feb860..4a8d318a61e78b8ab3fd8c1dc6b1190232da1b26 100755 (executable)
@@ -30,7 +30,6 @@ else
             cd /lib/modules
             ls -1 | tail -1
         )" \
-        QEMU_CPU="IvyBridge-v2" \
         DRACUT_NO_XATTR=1 \
         TEST_RUN_ID="$RUN_ID" \
         ${TESTS:+TESTS="$TESTS"} \