-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
213fadb
commit 8da5a0d
Showing
4 changed files
with
117 additions
and
7 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
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
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,62 @@ | ||
name: Build test | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
integration-test: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/terrapkg/builder:f38 | ||
# Pass /dev from host to container | ||
# Very hacky, but it works | ||
# Microsoft/Github, if you're reading this, | ||
# I'm sorry. | ||
options: --privileged -v /dev:/dev | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Cache DNF packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: /var/cache/dnf | ||
key: dnf-${{ runner.os }} | ||
restore-keys: | | ||
dnf-${{ runner.os }}- | ||
dnf- | ||
- name: Install dependencies | ||
run: | | ||
dnf install -y \ | ||
xorriso \ | ||
rpm \ | ||
limine \ | ||
systemd \ | ||
btrfs-progs \ | ||
e2fsprogs \ | ||
xfsprogs \ | ||
dosfstools \ | ||
grub2 \ | ||
parted \ | ||
util-linux-core \ | ||
systemd-container \ | ||
grub2-efi \ | ||
uboot-images-armv8 \ | ||
uboot-tools \ | ||
rustc \ | ||
qemu-user-static-aarch64 \ | ||
qemu-user-binfmt \ | ||
qemu-kvm \ | ||
qemu-img \ | ||
cargo \ | ||
systemd-devel \ | ||
mkpasswd \ | ||
clang-devel \ | ||
moby-engine | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test |
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