Skip to content

Commit 4280aa0

Browse files
Fix: CI failures
1 parent c4ab78b commit 4280aa0

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
cd /tftpboot/boot
3737
chmod +x *.sh
3838
cd /tftpboot/boot
39-
./mkimage.sh
4039
echo "tftpboot 0x80000000 bootloader.img; go 0x80000000" > boot.scr
40+
./mkimage.sh
4141
timeout 5m ./qemu_tftp.sh
4242
4343
vf2_tftp:
@@ -51,8 +51,8 @@ jobs:
5151
cp tftp/* /tftpboot/boot
5252
cd /tftpboot/boot
5353
chmod +x *.sh
54-
./mkimage.sh
5554
echo "tftpboot 0x80300000 bootloader.img; go 0x80300000" > boot.scr
55+
./mkimage.sh
5656
./power_vf2.sh off && ./power_vf2.sh on
5757
timeout 5m python3 vf2_tftp.py
5858
./power_vf2.sh off

.github/workflows/pull.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
cd /tftpboot/boot
3737
chmod +x *.sh
3838
cd /tftpboot/boot
39+
echo "tftpboot 0x80000000 bootloader.img; go 0x80000000" > boot.scr
3940
./mkimage.sh
4041
timeout 5m ./qemu_tftp.sh
4142
@@ -50,6 +51,7 @@ jobs:
5051
cp tftp/* /tftpboot/boot
5152
cd /tftpboot/boot
5253
chmod +x *.sh
54+
echo "tftpboot 0x80300000 bootloader.img; go 0x80300000" > boot.scr
5355
./mkimage.sh
5456
./power_vf2.sh off && ./power_vf2.sh on
5557
timeout 5m python3 vf2_tftp.py

.github/workflows/qemu_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ rm -f /tmp/{guest,host}.{in,out} && mkfifo /tmp/{guest,host}.{in,out}
99
set +x
1010

1111
printf -v QEMU_CMDLINE '%s' 'qemu-system-riscv64 -serial pipe:/tmp/guest ' \
12-
'-M virt -cpu rv64 -smp 4 -m 128M -nographic -bios none -kernel bootloader.img'
12+
'-M virt -cpu rv64 -smp 4 -m 256M -nographic -bios none -kernel bootloader.img'
1313

1414
wait_for_line () {
1515
local expected_line_pattern="$1"
1616
local fifo="$2"
1717
while read -r line; do
18-
echo " [$(date +"%T")] $line"
18+
echo "$line"
1919
if [[ $line == *$expected_line_pattern* ]]; then
2020
break
2121
fi

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ Cargo.lock
1818

1919
.github/workflows/*.md
2020
src/helper.rs
21+
test.md

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ FEATURES = --features $(BSP)
7474
COMPILER_ARGS = $(FEATURES) --release
7575

7676
RUSTC_CMD = cargo rustc $(COMPILER_ARGS)
77-
DOC_CMD = cargo doc $(COMPILER_ARGS) --all-features \
77+
DOC_CMD = cargo doc $(COMPILER_ARGS) --features $(BSP) \
7878
--document-private-items --workspace
7979
CLIPPY_CMD = cargo clippy $(COMPILER_ARGS) -- -A clippy::modulo_one
8080
OBJCOPY_CMD = rust-objcopy -O binary
@@ -246,15 +246,19 @@ endif
246246
##------------------------------------------------------------------------------
247247
hyperfine:
248248
ifeq ($(DOCKER),y)
249+
$(DOCKER_CMD) touch test.md
249250
$(DOCKER_CMD) hyperfine --warmup 1 --show-output --export-markdown test.md ./.github/workflows/qemu_test.sh
251+
$(DOCKER_CMD) cat test.md
250252
else
253+
touch test.md
251254
hyperfine --warmup 1 --show-output --export-markdown test.md ./.github/workflows/qemu_test.sh
255+
cat test.md
252256
endif
253257

254258
##------------------------------------------------------------------------------
255259
## Execute cargo expand
256260
##------------------------------------------------------------------------------
257-
hyperfine:
261+
expand:
258262
ifeq ($(DOCKER),y)
259263
$(DOCKER_CMD) cargo expand --target riscv64gc-unknown-none-elf --features $(BSP)
260264
else

src/helper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ pub fn print_boot_logo() {
1313
println!(r" \/_/ ");
1414
println!(r"");
1515
}
16-
pub const SHA: &str = "20c74052";
16+
pub const SHA: &str = "c0d90bb9";

0 commit comments

Comments
 (0)