Skip to content

Commit c1b3b71

Browse files
committed
Switches back to self-hosted Actions runners
1 parent 89729ca commit c1b3b71

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/vagrant-up.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ on:
2222

2323
jobs:
2424
vagrant-provision:
25-
# Running on macOS, because macOS-based GitHub-hosted action runners do support nested virtualization.
25+
# Running on self-hosted system(s), because GitHub-hosted action runners did break too often.
2626
# https://github.com/actions/runner-images/issues/433
27-
runs-on: macos-12
28-
27+
runs-on: [self-hosted]
2928
steps:
29+
- name: clean up old VMs
30+
run: |
31+
vboxmanage list vms | \
32+
grep -o -P '(?<={).*(?=})' | \
33+
while read line ; do vboxmanage unregistervm $line --delete ; done
3034
- uses: actions/checkout@v3
31-
- name: install dependencies
32-
run: |
33-
brew install wget unzip gnu-tar gnu-sed
3435
- name: show Vagrant version
3536
run: vagrant --version
3637
- name: run vagrant up
@@ -45,9 +46,8 @@ jobs:
4546
vboxmanage export emoflon -o emoflon.ovf
4647
sed -i -e '/<BIOS>/,/<\/BIOS>/d' emoflon.ovf
4748
sed -i -e '/<RemoteDisplay enabled="true">/,/<\/RemoteDisplay>/d' emoflon.ovf
48-
gtar -cvf emoflon.ova emoflon.ovf emoflon-disk001.vmdk
49+
tar -cvf emoflon.ova emoflon.ovf emoflon-disk001.vmdk
4950
rm -rf emoflon.ovf emoflon-disk001.vmdk
50-
# ^gtar (to use gnu-tar) instead of macOS tar
5151
- name: upload artifact
5252
uses: actions/upload-artifact@v3
5353
with:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Unfortunately, only the macOS-based GitHub-hosted action runners do support nest
3737

3838
Therefore, we've adapted the CI-configuration to provision the **eMoflon-IBeX-VM** on a macOS-based runner until nested virtualization support gets added to the Linux-based runners.
3939

40+
Unfortunately, these workflows did break **very often** lately so we switched back to self-hosted Linux-based runners.
41+
4042
### Self-hosted Linux-based runners
4143

4244
Currently, all actions must be run by a self-hosted GitHub runner, because GitHub-hosted runners do not provide the VT-x flag:
@@ -62,4 +64,4 @@ Required packages (at least):
6264
- `VirtualBox`
6365
- `vagrant`
6466
65-
**Please keep in mind that your runner (VM) needs the virtualization flag enabled and at least 6 GB of RAM!**
67+
**Please keep in mind that your runner (VM) needs the virtualization flag enabled and at least 10 GB of RAM!**

0 commit comments

Comments
 (0)