-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add Windows guest integration tests for GHA
Resolves #324 Signed-off-by: Akira Moroo <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Rust Hypervisor Firmware Tests (Windows Guest) | ||
on: [pull_request, merge_group] | ||
|
||
jobs: | ||
build: | ||
name: Tests (Windows Guest) | ||
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'garm-jammy-16' }} | ||
steps: | ||
- name: Code checkout | ||
if: ${{ github.event_name != 'pull_request' }} | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Azure CLI | ||
if: ${{ github.event_name != 'pull_request' }} | ||
run: | | ||
sudo apt install -y ca-certificates curl apt-transport-https lsb-release gnupg | ||
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null | ||
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ jammy main" | sudo tee /etc/apt/sources.list.d/azure-cli.list | ||
sudo apt update | ||
sudo apt install -y azure-cli | ||
- name: Download Windows image | ||
if: ${{ github.event_name != 'pull_request' }} | ||
run: | | ||
mkdir $HOME/workloads | ||
az storage blob download --container-name private-images --file "$HOME/workloads/windows-server-2019.raw" --name windows-server-2019.raw --connection-string "${{ secrets.CH_PRIVATE_IMAGES }}" | ||
- name: Run Windows guest integration tests | ||
timeout-minutes: 60 | ||
run: scripts/dev_cli.sh tests --integration-windows | ||
- name: Skipping build for PR | ||
if: ${{ github.event_name == 'pull_request' }} | ||
run: echo "Skipping build for PR" |
This file was deleted.
Oops, something went wrong.