-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new GH Action to setup latest SNP upstream host kernel
Installs and updates self-hosted runner with the SNP latest upstream kernel Signed-off-by: Harika Nittala <[email protected]>
- Loading branch information
1 parent
dfa320e
commit d4ff5fa
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Setup SNP latest upstream Kernel on the self-hosted runner | ||
on: | ||
workflow_dispatch: | ||
# Suggested Move: Run this workflow every night to update to SNP host kernel to latest | ||
# schedule: | ||
# - cron: "0 0 * * *" | ||
|
||
jobs: | ||
snp_setup: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Latest SNP Kernel on self-hosted runner | ||
run: | | ||
echo "Installing SNP on the host..." | ||
mv ~/snp ~/previous_snp_version | ||
rm -rf ~/snp.sh | ||
wget https://raw.githubusercontent.com/LakshmiSaiHarika/sev-utils/Fedora-Latest-SNP-kernel-Upstream/tools/snp.sh | ||
chmod +x snp.sh | ||
./snp.sh setup-host | ||
echo "The host must be rebooted for changes to take effect." | ||
- name: Reboot self-hosted runner | ||
run: sudo reboot |