Skip to content

Commit

Permalink
Switches back to self-hosted Actions runners
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkratz committed Dec 5, 2023
1 parent 89729ca commit c1b3b71
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/vagrant-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ on:

jobs:
vagrant-provision:
# Running on macOS, because macOS-based GitHub-hosted action runners do support nested virtualization.
# Running on self-hosted system(s), because GitHub-hosted action runners did break too often.
# https://github.com/actions/runner-images/issues/433
runs-on: macos-12

runs-on: [self-hosted]
steps:
- name: clean up old VMs
run: |
vboxmanage list vms | \
grep -o -P '(?<={).*(?=})' | \
while read line ; do vboxmanage unregistervm $line --delete ; done
- uses: actions/checkout@v3
- name: install dependencies
run: |
brew install wget unzip gnu-tar gnu-sed
- name: show Vagrant version
run: vagrant --version
- name: run vagrant up
Expand All @@ -45,9 +46,8 @@ jobs:
vboxmanage export emoflon -o emoflon.ovf
sed -i -e '/<BIOS>/,/<\/BIOS>/d' emoflon.ovf
sed -i -e '/<RemoteDisplay enabled="true">/,/<\/RemoteDisplay>/d' emoflon.ovf
gtar -cvf emoflon.ova emoflon.ovf emoflon-disk001.vmdk
tar -cvf emoflon.ova emoflon.ovf emoflon-disk001.vmdk
rm -rf emoflon.ovf emoflon-disk001.vmdk
# ^gtar (to use gnu-tar) instead of macOS tar
- name: upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Unfortunately, only the macOS-based GitHub-hosted action runners do support nest

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.

Unfortunately, these workflows did break **very often** lately so we switched back to self-hosted Linux-based runners.

### Self-hosted Linux-based runners

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

0 comments on commit c1b3b71

Please sign in to comment.