Skip to content

Commit

Permalink
GitHub Actions handle accelaration based on runner capabilities
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
  • Loading branch information
uncleDecart committed Nov 24, 2023
1 parent 1e7a7d9 commit 76d288d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/actions/setup-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ runs:
- name: Install Packages
run: |
sudo add-apt-repository ppa:stefanberger/swtpm-jammy
sudo apt install -y qemu-utils qemu-system-x86 jq swtpm
sudo apt install -y qemu-utils qemu-system-x86 jq swtpm util-linux
shell: bash
- name: Build tests
run: |
Expand All @@ -44,7 +44,11 @@ runs:
- name: Configure
run: |
./eden config add default
./eden config set default --key=eve.accel --value=false
if lscpu | grep -oEq "vmx|svm"; then
./eden config set default --key=eve.accel --value=true
else
./eden config set default --key=eve.accel --value=false
fi
./eden config set default --key=eve.tpm --value=${{ inputs.tpm_enabled }}
./eden config set default --key=eve.cpu --value=2
shell: bash
Expand Down

0 comments on commit 76d288d

Please sign in to comment.