From fbcf5fb37dcb27ef84bce893a8658c54685e2e34 Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Mon, 4 Mar 2024 18:50:30 +0200 Subject: [PATCH] build: Update ARM64 GitHub action for windows integration tests Signed-off-by: Ravi kumar Veeramally --- .github/workflows/integration-arm64.yaml | 31 +++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-arm64.yaml b/.github/workflows/integration-arm64.yaml index e940b11e5..98689470c 100644 --- a/.github/workflows/integration-arm64.yaml +++ b/.github/workflows/integration-arm64.yaml @@ -22,4 +22,33 @@ jobs: run: sudo modprobe openvswitch - name: Run integration tests (musl) timeout-minutes: 30 - run: scripts/dev_cli.sh tests --integration --libc musl \ No newline at end of file + run: scripts/dev_cli.sh tests --integration --libc musl + - 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=arm64] https://packages.microsoft.com/repos/azure-cli/ focal 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' }} + shell: bash + run: | + IMG_BASENAME=windows-11-iot-enterprise-aarch64.raw + IMG_PATH=$HOME/workloads/$IMG_BASENAME + IMG_GZ_PATH=$HOME/workloads/$IMG_BASENAME.gz + IMG_GZ_BLOB_NAME=windows-11-iot-enterprise-aarch64-9-min.raw.gz + cp "scripts/$IMG_BASENAME.sha1" "$HOME/workloads/" + pushd "$HOME/workloads" + if sha1sum "$IMG_BASENAME.sha1" --check; then + exit + fi + popd + mkdir -p "$HOME/workloads" + az storage blob download --container-name private-images --file "$IMG_GZ_PATH" --name "$IMG_GZ_BLOB_NAME" --connection-string "${{ secrets.CH_PRIVATE_IMAGES }}" + gzip -d $IMG_GZ_PATH + - name: Run Windows guest integration tests + if: ${{ github.event_name != 'pull_request' }} + timeout-minutes: 30 + run: scripts/dev_cli.sh tests --integration-windows --libc musl