From: Jan Kiszka <[email protected]>

Signed-off-by: Jan Kiszka <[email protected]>
---
 .github/workflows/main.yaml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 7d33c76..429557b 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -29,6 +29,7 @@ jobs:
           - amd64
           - i386
           - arm64
+          - arm
           - cppcheck
     steps:
       - name: Checkout
@@ -69,6 +70,24 @@ jobs:
               autoconf-archive gcc-aarch64-linux-gnu libc6-dev-arm64-cross \
               gnu-efi:arm64 libz-dev:arm64 libpci-dev:arm64 check:arm64 \
               qemu-user-static
+      - name: Install arm dependencies
+        if: ${{ matrix.target == 'arm' }}
+        run: |
+          sudo dpkg --add-architecture armhf
+          sudo sed -i 's/^deb /deb [arch=amd64] /g' /etc/apt/sources.list
+          sudo sh -c "cat <<EOF > /etc/apt/sources.list.d/ports.list
+          deb [arch=armhf] http://ports.ubuntu.com/ focal main restricted
+          deb [arch=armhf] http://ports.ubuntu.com/ focal-updates main 
restricted
+          deb [arch=armhf] http://ports.ubuntu.com/ focal universe
+          deb [arch=armhf] http://ports.ubuntu.com/ focal-updates universe
+          deb [arch=armhf] http://ports.ubuntu.com/ focal multiverse
+          deb [arch=armhf] http://ports.ubuntu.com/ focal-updates multiverse
+          EOF"
+          sudo apt-get update
+          sudo apt-get install --no-install-recommends \
+              autoconf-archive gcc-arm-linux-gnueabihf libc6-dev-armhf-cross \
+              gnu-efi:armhf libz-dev:armhf libpci-dev:armhf check:armhf \
+              qemu-user-static
       - name: Install cppcheck
         if: ${{ matrix.target == 'cppcheck' }}
         run: |
@@ -113,6 +132,13 @@ jobs:
           ../configure --host=aarch64-linux-gnu \
               PKG_CONFIG=/usr/bin/aarch64-linux-gnu-pkg-config
           make check -j $(nproc)
+      - name: Build arm
+        if: ${{ matrix.target == 'arm' }}
+        run: |
+          cd build
+          ../configure --host=arm-linux-gnueabihf \
+              PKG_CONFIG=/usr/bin/arm-linux-gnueabihf-pkg-config
+          make check -j $(nproc)
       - name: Run cppcheck
         if: ${{ matrix.target == 'cppcheck' }}
         run: |
-- 
2.35.3

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/52b7b4d8aac6b38260bb12fdbc30da2218563316.1655731805.git.jan.kiszka%40siemens.com.

Reply via email to