Skip to content

Commit 5fb3fde

Browse files
committed
Workflow without screenshots
1 parent 714e0cc commit 5fb3fde

2 files changed

Lines changed: 19 additions & 18 deletions

File tree

.github/workflows/publish.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,33 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
steps:
7-
- name: Maximize build space
8-
uses: easimon/maximize-build-space@master
9-
- name: Create cache dir for packer
10-
run: mkdir -p /home/runner/work/windows-vagrant/windows-vagrant/.cache
11-
- name: Check out repository code
12-
uses: actions/checkout@v6
137
- name: Enable vagrant repo and update sources
148
run: |
159
wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
1610
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
1711
sudo apt -yq update
1812
- name: Install dependencies
19-
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
13+
run: DEBIAN_FRONTEND=noninteractive sudo apt -yq install qemu-system-x86 xorriso make zip unzip tar p7zip dos2unix openssh-client vagrant libvirt-dev
2014
- name: Install vagrant dependencies
2115
run: vagrant plugin install vagrant-libvirt
22-
- name: Enable KVM group perms
23-
run: |
24-
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
25-
sudo udevadm control --reload-rules
26-
sudo udevadm trigger --name-match=kvm
16+
- name: Maximize build space
17+
uses: easimon/maximize-build-space@master
18+
- name: Check out repository code
19+
uses: actions/checkout@v6
20+
- name: Change locales to fr-FR
21+
run: sed -i 's/Locale>en-US</Locale>fr-FR</' ./windows-11-24h2-uefi/autounattend.xml
22+
- name: Configure version for release
23+
run: sed -i 's/0.0.0/$(date +%Y%m%d.%H%M%S)/' box-metadata.sh
24+
- name: Create cache dir for packer
25+
run: mkdir -p ${{ github.workspace }}/.cache
2726
- name: Build vagrant box
2827
env:
2928
PACKER_GITHUB_API_TOKEN: ${{ secrets.PACKER_GITHUB_API_TOKEN }}
30-
run: PACKER_CACHE_DIR=/home/runner/work/windows-vagrant/windows-vagrant/.cache ./ci-build-windows-11-fr-input.sh
29+
run: PACKER_CACHE_DIR=${{ github.workspace }}/.cache make build-windows-11-24h2-uefi-libvirt
3130
- uses: actions/upload-artifact@v6
32-
if: always()
3331
with:
34-
name: screenshots
35-
path: screens
32+
name: box
33+
path: |
34+
*.box
35+
*.log
36+
*.box.json

ci-build-windows-11-fr-input.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sed -i 's/Locale>en-US</Locale>fr-FR</' ./windows-11-24h2-uefi/autounattend.xml
55

66
# Prepare version for release
77
# shellcheck disable=SC2016
8-
sed -i 's/0.0.0/`date +%Y%m%d.%H%M%S`/' box-metadata.sh
8+
sed -i 's/0.0.0/$(date +%Y%m%d.%H%M%S)/' box-metadata.sh
99

1010
# Prepare screenshots folder and stop signal
1111
mkdir -p screens
@@ -31,4 +31,4 @@ done
3131
# Revert changes to keep git clean
3232
sed -i 's/Locale>fr-FR</Locale>en-US</' ./windows-11-24h2-uefi/autounattend.xml
3333
# shellcheck disable=SC2016
34-
sed -i 's/`date +%Y%m%d.%H%M%S`/0.0.0/' box-metadata.sh
34+
sed -i 's/$(date +%Y%m%d.%H%M%S)/0.0.0/' box-metadata.sh

0 commit comments

Comments
 (0)