Skip to content

Commit

Permalink
ah
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Sep 23, 2023
1 parent c2c3e0b commit 366309e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/arm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ jobs:
runs-on: ubuntu-latest
container:
image: ghcr.io/terrapkg/builder:f38
# priv
# 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: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Cache DNF packages
uses: actions/cache@v2
Expand Down Expand Up @@ -42,6 +47,10 @@ jobs:
uboot-images-armv8 \
uboot-tools \
rustc \
qemu-user-static-aarch64 \
qemu-user-binfmt \
qemu-kvm \
qemu-img \
cargo
- uses: Swatinem/rust-cache@v2
Expand All @@ -51,14 +60,14 @@ jobs:
cargo install --path . --debug
- name: Prepare loop devices
run: |
for i in $(seq 0 23);
do
sudo mknod -m 0660 /dev/loop$i b 7 0 2> /dev/null || true
done
for i in $(seq 0 23);
do
sudo mknod -m 0660 /dev/loop$i b 7 0 2> /dev/null || true
done
- name: Run test
run: |
export PATH=$HOME/.cargo/bin:$PATH
export KATSU_LOG=trace
pushd tests
COLORBT_SHOW_HIDDEN=1 katsu katsudon-arm.yaml 2>&1
popd
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() -> Result<()> {
tracing_subscriber::Registry::default().with(tracing_error::ErrorLayer::default()).with(
tracing_subscriber::fmt::layer()
.pretty()
.with_filter(tracing_subscriber::EnvFilter::from_env("KATSU_TABEN")),
.with_filter(tracing_subscriber::EnvFilter::from_env("KATSU_LOG")),
);
tracing::subscriber::set_global_default(subscriber).expect("setting default subscriber failed");
sudo::escalate_if_needed().unwrap();
Expand Down

0 comments on commit 366309e

Please sign in to comment.