From 4b3ee065561345eba655e1d4c4f2f36b8d35ae96 Mon Sep 17 00:00:00 2001 From: vance-raiti Date: Tue, 8 Oct 2024 22:15:59 +0000 Subject: [PATCH] Add CI workflow to verify UKL build and boot --- .github/workflows/test.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 000000000..e38c24e8c --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,35 @@ +name: "Test that UKL is still working" +on: + workflow_dispatch: + push: + pull_request: + +jobs: + verify: + runs-on: "ubuntu-latest" + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Free disk space + run: | + sudo rm -rf /usr/share/dotnet /opt/ghc "/usr/local/share/boost" "$AGENT_TOOLSDIRECTORY" /usr/local/lib/android + + - name: Install dependencies + run: | + sudo apt install -y bc binutils bison dwarves flex gcc git gnupg2 gzip libelf-dev libncurses5-dev libssl-dev make openssl pahole perl-base rsync tar xz-utils + sudo apt install -y docker automake autoconf qemu + + - name: Build + run: | + git submodule update --init + autoreconf -i + ./configure --with-program=redis + make -j`nproc` + timeout 5m make boot + if [ "$?" == "124" ]; + exit 0 + fi + exit 1 + +