feat: prebaked platform VM #6
Workflow file for this run
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
| name: Build MicroShift VM (WSL) | |
| on: | |
| pull_request: {} | |
| jobs: | |
| build-wsl: | |
| name: Build WSL image | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| with: | |
| install_vm_deps: 'build' | |
| maximize_space: 'true' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install libguestfs-tools | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libguestfs-tools | |
| sudo chmod +r /boot/vmlinuz-* | |
| - name: Build WSL image | |
| run: mise run microshift-vm:build:wsl | |
| env: | |
| LIBGUESTFS_BACKEND: direct | |
| - name: Upload WSL artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: microshift-vm-wsl | |
| path: apps/microshift-vm/dist/x86_64/*.wsl | |
| if-no-files-found: error |