diff --git a/.github/workflows/arm-platform-ci.yml b/.github/workflows/arm-platform-ci.yml new file mode 100644 index 00000000000..d87d5bc303a --- /dev/null +++ b/.github/workflows/arm-platform-ci.yml @@ -0,0 +1,36 @@ +name: Run Shrinkwrap to validate Arm platform + +on: + workflow_dispatch: + +jobs: + shrinkwrap: + runs-on: ubuntu-22.04-arm + container: shrinkwraptool/base-full + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Install Required System Packages + run: | + apt-get update -qq + apt-get install -y git netcat-openbsd python3 python3-pip telnet wget + + - name: Install Required Python Packages + run: | + pip3 install pyyaml termcolor tuxmake + + - name: Clone Shrinkwrap Repository + run: | + git clone https://git.gitlab.arm.com/tooling/shrinkwrap.git + export PATH=$PWD/shrinkwrap/shrinkwrap:$PATH + echo "Checking if Shrinkwrap is installed correctly..." + shrinkwrap --help || { echo "Shrinkwrap not found or not installed correctly"; } + cd shrinkwrap + wget "https://kciapistagingstorage1.file.core.windows.net/production/kbuild-gcc-12-arm64-kselftest-67bb89e7e3e60eeff6099cdc/Image?sv=2022-11-02&ss=f&srt=sco&sp=r&se=2026-10-18T13:36:18Z&st=2024-10-17T05:36:18Z&spr=https&sig=xFxYOOh5uXJWeN9I3YKAUvpGGQivo89HKZbD78gcxvc%3D" + wget "https://storage.kernelci.org/images/rootfs/debian/bookworm/20240715.0/arm64/rootfs.ext4.xz" + ls -l + unxz rootfs.ext4.xz + cd - + shrinkwrap -R null build --overlay=arch/v9.4.yaml ns-edk2.yaml + shrinkwrap -R null run --overlay='{"run":{"params":{"-C bp.pl011_uart0.shutdown_tag": "login:"}}}' --rtvar=KERNEL=$PWD/shrinkwrap/Image --rtvar=ROOTFS=$PWD/shrinkwrap/rootfs.ext4 --rtvar=CMDLINE="console=ttyAMA0 earlycon=pl011,0x1c090000 root=/dev/vda1 ip=dhcp acpi=force" ns-edk2.yaml