Skip to content

Commit

Permalink
Added new GH Action to setup latest SNP upstream host kernel
Browse files Browse the repository at this point in the history
Installs and updates self-hosted runner with the SNP latest upstream kernel

Signed-off-by: Harika Nittala <[email protected]>
  • Loading branch information
LakshmiSaiHarika committed Oct 21, 2024
1 parent dfa320e commit d4ff5fa
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/snp-host-setup.yaml
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

0 comments on commit d4ff5fa

Please sign in to comment.