Fix PACKER_CACHE_DIR typo #101
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: Publish Windows 11 FR input (Ubuntu) | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v6 | |
| - name: Enable vagrant repo and update sources | |
| run: | | |
| wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg | |
| echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(grep -oP '(?<=UBUNTU_CODENAME=).*' /etc/os-release || lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | |
| sudo apt -yq update | |
| - name: Install dependencies | |
| run: DEBIAN_FRONTEND=noninteractive sudo apt -yq install qemu-system-x86 xorriso make zip unzip tar p7zip dos2unix openssh-client vagrant libvirt-dev caca-utils spice-client-gtk imagemagick | |
| - name: Install vagrant dependencies | |
| run: vagrant plugin install vagrant-libvirt | |
| - name: Enable KVM group perms | |
| run: | | |
| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
| sudo udevadm control --reload-rules | |
| sudo udevadm trigger --name-match=kvm | |
| - name: Create TMPDIR | |
| run: | | |
| sudo mkdir -p /mnt/packer | |
| sudo mkdir -p /mnt/cache | |
| sudo chown -R $(id -u):$(id -g) /mnt/packer | |
| sudo chown -R $(id -u):$(id -g) /mnt/cache | |
| - name: Build vagrant box | |
| run: TMPDIR=/mnt/packer ./ci-build-windows-11-fr-input.sh | |
| - uses: actions/upload-artifact@v6 | |
| if: always() | |
| with: | |
| name: screenshots | |
| path: screens |