From 1307cf52a24a289fabbcd482b6acf02728dfdcbd Mon Sep 17 00:00:00 2001 From: Maximilian Kratz Date: Wed, 13 Mar 2024 13:56:23 +0100 Subject: [PATCH 1/4] Clean up old Vagrant and GitHub Actions artifacts on the runner --- .github/workflows/vagrant-up.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vagrant-up.yml b/.github/workflows/vagrant-up.yml index aba37b4..b8be999 100644 --- a/.github/workflows/vagrant-up.yml +++ b/.github/workflows/vagrant-up.yml @@ -28,11 +28,22 @@ jobs: group: Default labels: [self-hosted, Linux, X64] steps: - - name: clean up old VMs + - name: clean up old VirtualBox VMs run: | vboxmanage list vms | \ grep -o -P '(?<={).*(?=})' | \ while read line ; do vboxmanage unregistervm $line --delete ; done + - name: clean up old Vagrant artifacts + run: | + vagrant destroy emoflon || true + vagrant box remove gusztavvargadr/xubuntu-desktop-2204-lts || true + # https://stackoverflow.com/a/71346341 + - name: clean up old GitHub Actions runner build folder + run: | + ls -la ./ + rm -rf ./* || true + rm -rf ./.??* || true + ls -la ./ - uses: actions/checkout@v4 - name: show Vagrant version run: vagrant --version @@ -42,7 +53,7 @@ jobs: echo "=> Vagrant run finished." env: GITHUB_TOKEN: ${{ github.token }} - - name: export virtualbox VM + - name: export VirtualBox VM run: | vagrant halt vboxmanage export emoflon -o emoflon.ovf From 2a0d27cc729497531dea79a13a6cef6dd37653ab Mon Sep 17 00:00:00 2001 From: Maximilian Kratz Date: Wed, 13 Mar 2024 14:08:55 +0100 Subject: [PATCH 2/4] Adds missing ZIP archive part to artifact upload --- .github/workflows/vagrant-up.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/vagrant-up.yml b/.github/workflows/vagrant-up.yml index aba37b4..6426432 100644 --- a/.github/workflows/vagrant-up.yml +++ b/.github/workflows/vagrant-up.yml @@ -86,3 +86,8 @@ jobs: with: body: "The VM archive can not be directly added to this release because of the size limitation of 2GB per file. Please download the splitted ZIP archive and extract it manually." files: emoflon-vm.z02 + - name: release emoflon-vm (4) + uses: softprops/action-gh-release@v1 + with: + body: "The VM archive can not be directly added to this release because of the size limitation of 2GB per file. Please download the splitted ZIP archive and extract it manually." + files: emoflon-vm.z03 From d99bf84de99fa647f5ea13a93bb5c47037927d66 Mon Sep 17 00:00:00 2001 From: Maximilian Kratz Date: Wed, 13 Mar 2024 16:38:05 +0100 Subject: [PATCH 3/4] Updates softprops/action-gh-release to v2 + pin download-artifact to v4 --- .github/workflows/vagrant-up.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/vagrant-up.yml b/.github/workflows/vagrant-up.yml index b8be999..6443f9e 100644 --- a/.github/workflows/vagrant-up.yml +++ b/.github/workflows/vagrant-up.yml @@ -75,7 +75,7 @@ jobs: if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.event_name != 'schedule' steps: - name: collect artifacts - uses: actions/download-artifact@master + uses: actions/download-artifact@4 - name: create splitted ZIP archive run: | sudo apt-get install -yq zip @@ -83,17 +83,17 @@ jobs: # Due to a bug in the release action, we have to upload all artifacts step-by-step # https://github.com/softprops/action-gh-release/issues/243 - name: release emoflon-vm (1) - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: body: "The VM archive can not be directly added to this release because of the size limitation of 2GB per file. Please download the splitted ZIP archive and extract it manually." files: emoflon-vm.zip - name: release emoflon-vm (2) - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: body: "The VM archive can not be directly added to this release because of the size limitation of 2GB per file. Please download the splitted ZIP archive and extract it manually." files: emoflon-vm.z01 - name: release emoflon-vm (3) - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: body: "The VM archive can not be directly added to this release because of the size limitation of 2GB per file. Please download the splitted ZIP archive and extract it manually." files: emoflon-vm.z02 From 2e57151a1164acb3ce95f26bbf955532b6ef219e Mon Sep 17 00:00:00 2001 From: Maximilian Kratz Date: Thu, 14 Mar 2024 12:37:40 +0100 Subject: [PATCH 4/4] Fixes wrong GitHub Actions versions - typo in actions/download-artifact@v4 - update for newly added softprops/action-gh-release --- .github/workflows/vagrant-up.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vagrant-up.yml b/.github/workflows/vagrant-up.yml index bbdbbc4..6536a48 100644 --- a/.github/workflows/vagrant-up.yml +++ b/.github/workflows/vagrant-up.yml @@ -75,7 +75,7 @@ jobs: if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.event_name != 'schedule' steps: - name: collect artifacts - uses: actions/download-artifact@4 + uses: actions/download-artifact@v4 - name: create splitted ZIP archive run: | sudo apt-get install -yq zip @@ -98,7 +98,7 @@ jobs: body: "The VM archive can not be directly added to this release because of the size limitation of 2GB per file. Please download the splitted ZIP archive and extract it manually." files: emoflon-vm.z02 - name: release emoflon-vm (4) - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: body: "The VM archive can not be directly added to this release because of the size limitation of 2GB per file. Please download the splitted ZIP archive and extract it manually." files: emoflon-vm.z03