mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Install qemu on CI
This commit is contained in:
@@ -61,6 +61,26 @@ steps:
|
||||
- script: cargo bootimage
|
||||
displayName: 'Create Bootimage'
|
||||
|
||||
- script: sudo apt update && sudo apt install qemu-system-x86
|
||||
condition: eq( variables['Agent.OS'], 'Linux' )
|
||||
displayName: 'Install QEMU (Linux)'
|
||||
|
||||
- script: |
|
||||
export HOMEBREW_NO_AUTO_UPDATE=1
|
||||
export HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK=1
|
||||
export HOMEBREW_NO_INSTALL_CLEANUP=1
|
||||
brew install qemu
|
||||
condition: eq( variables['Agent.OS'], 'Darwin' )
|
||||
displayName: 'Install QEMU (macOS)'
|
||||
|
||||
- script: |
|
||||
choco install qemu --limit-output --no-progress
|
||||
echo ##vso[task.setvariable variable=PATH;]%PATH%;C:\Program Files\qemu
|
||||
set PATH=%PATH%;C:\Program Files\qemu
|
||||
qemu-system-x86_64 --version
|
||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||
displayName: 'Install QEMU (Windows)'
|
||||
|
||||
- script: cargo xtest
|
||||
displayName: 'Test'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user