-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DO_NOT_MERGE] [TEST] Trying ARM runners
Signed-off-by: Aishwarya TCV <[email protected]>
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |