Skip to content

Commit

Permalink
Merge remote-tracking branch 'ibex/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkratz committed Mar 15, 2024
2 parents fcf5c65 + 75907ac commit a1a4be7
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/vagrant-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -64,25 +75,30 @@ 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@v4
- name: create splitted ZIP archive
run: |
sudo apt-get install -yq zip
zip -r -s 1990m emoflon-vm.zip emoflon-ova/emoflon.ova
# 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
- name: release emoflon-vm (4)
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

0 comments on commit a1a4be7

Please sign in to comment.