Address PR feedback: move to .github/workflows/, use template approac… #1
This file contains hidden or 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
| ############################## | |
| # THIS FILE IS AUTOGENERATED # | |
| # DO NOT MANUALLY EDIT # | |
| ############################## | |
| # Copyright (c) Microsoft Corporation. | |
| # Licensed under the MIT License. | |
| # GitHub Copilot setup steps for OpenVMM development environment | |
| # Generated by flowey_hvlite - DO NOT EDIT MANUALLY | |
| steps: | |
| - name: Install Rust with required targets | |
| run: | | |
| # Install Rust using rustup (version managed by flowey) | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.88.0 | |
| source ~/.cargo/env | |
| # Install targets for the host architecture | |
| ARCH=$(uname -m) | |
| if [ "$ARCH" = "x86_64" ]; then | |
| rustup target add x86_64-unknown-linux-musl | |
| elif [ "$ARCH" = "aarch64" ]; then | |
| rustup target add aarch64-unknown-linux-musl | |
| fi | |
| - name: Install system dependencies | |
| run: | | |
| # Update package lists with retry logic (from CI pipelines) | |
| set -x | |
| i=0; while [ $i -lt 5 ] && ! sudo apt-get update; do let "i=i+1"; sleep 1; done; | |
| # Install build dependencies required for OpenVMM | |
| sudo apt-get -o DPkg::Lock::Timeout=60 install -y \ | |
| binutils \ | |
| build-essential \ | |
| gcc \ | |
| gcc-aarch64-linux-gnu \ | |
| libssl-dev \ | |
| pkg-config | |
| - name: Restore OpenVMM build dependencies | |
| run: | | |
| # Restore external dependencies required for building OpenVMM | |
| # This includes protoc (Protocol Buffers compiler), mu_msvm UEFI firmware, | |
| # test Linux kernels, and other build artifacts | |
| cargo xflowey restore-packages | |
| # Install cargo-nextest for running unit tests (version managed by flowey) | |
| cargo install cargo-nextest --version 0.9.96 --locked |