Skip to content

Commit

Permalink
Add CI workflow to verify UKL build and boot
Browse files Browse the repository at this point in the history
  • Loading branch information
Vance-Raiti committed Oct 9, 2024
1 parent c453636 commit da6eb01
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Why isn't docker working T_T"
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: |
autoreconf -i
./configure --with-program=redis
mkdir data
tar cvf redis/data.tar.gz data
make ukl-initrd.cpio.xz
ls initrd
35 changes: 35 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -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
timeout 5m make boot
if [ "$?" == "124" ];
exit 0
fi
exit 1

0 comments on commit da6eb01

Please sign in to comment.