@@ -64,10 +64,14 @@ jobs:
64
64
HOMEBREW_NO_AUTO_UPDATE : 1
65
65
HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK : 1
66
66
HOMEBREW_NO_INSTALL_CLEANUP : 1
67
- - name : Install QEMU (Windows)
67
+ - name : Install Scoop (Windows)
68
68
run : |
69
- choco install qemu --version=2020.11.20 -y --no-progress
70
- echo "C:\Program Files\qemu" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
69
+ Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
70
+ echo "$HOME\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
71
+ if : runner.os == 'Windows'
72
+ shell : pwsh
73
+ - name : Install QEMU (Windows)
74
+ run : scoop install qemu
71
75
if : runner.os == 'Windows'
72
76
shell : pwsh
73
77
- name : " Print QEMU Version"
78
82
qemu-system-x86_64 -drive format=raw,file=target/x86_64-bootloader/release/bootloader.bin -device isa-debug-exit,iobase=0xf4,iosize=0x04 -display none
79
83
if [ $? -eq 123 ]; then (exit 0); else (exit 1); fi
80
84
shell : ' bash {0}'
85
+ if : runner.os != 'Windows'
81
86
87
+ - name : ' Run Test Kernel with Bootloader (Windows)'
88
+ run : |
89
+ qemu-system-x86_64 -drive format=raw,file=target/x86_64-bootloader/release/bootloader.bin -device isa-debug-exit,iobase=0xf4,iosize=0x04 -display none -L "C:\Program Files\qemu"
90
+ if [ $? -eq 123 ]; then (exit 0); else (exit 1); fi
91
+ shell : ' bash {0}'
92
+ if : runner.os == 'Windows'
82
93
83
94
build_example_kernel :
84
95
name : " Build Example Kernel"
0 commit comments