nightly: include systemd service files

This commit is contained in:
Alex Zenla 2024-03-05 13:29:10 +00:00
parent a37f33e688
commit 9623497b01
No known key found for this signature in database
GPG Key ID: 067B238899B51269
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
name: nightly
on:
workflow_dispatch:
schedule:
- cron: "0 4 * * *"
jobs:

View File

@ -10,13 +10,14 @@ for X in kratad kratanet kratactl
do
cargo build --release --target x86_64-unknown-linux-gnu --bin "${X}"
cp "${KRATA_DIR}/target/x86_64-unknown-linux-gnu/release/${X}" "${NIGHTLY_DIR}/${X}"
done
./initrd/build.sh
./kernel/build.sh
cd "${NIGHTLY_DIR}"
cp "${KRATA_DIR}/initrd/target/initrd" initrd
cp "${KRATA_DIR}/kernel/target/kernel" kernel
cp "${KRATA_DIR}/resources/systemd/kratad.service" kratad.service
cp "${KRATA_DIR}/resources/systemd/kratanet.service" kratanet.service
tar czf "${NIGHTLY_TAR}" .
cd "${KRATA_DIR}"
rm -rf "${NIGHTLY_DIR}"