-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enabled vulkan sdk for ubuntu 20.04
- Loading branch information
1 parent
1140c9d
commit 540bb2c
Showing
4 changed files
with
52 additions
and
25 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
# Ensure that the latest version of mesa is installed | ||
sudo add-apt-repository ppa:kisak/kisak-mesa -y | ||
sudo apt update -y | ||
sudo apt upgrade -y |
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
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,48 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
usage="Usage: install-vulkan | ||
Used when running apt package manager to install vulkan sdk using a PPA | ||
repository" | ||
|
||
this_dir=$(dirname "$(realpath "${BASH_SOURCE:-$0}")") | ||
"$this_dir/helpers/apt/assert" | ||
|
||
while [[ $# -gt 0 ]]; do | ||
case "$1" in | ||
-h | --help) | ||
echo "$usage" | ||
exit 0 | ||
;; | ||
esac | ||
done | ||
|
||
# For ubuntu 22.04 | ||
jammy() { | ||
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc | ||
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list | ||
sudo apt update | ||
sudo apt -y install vulkan-sdk | ||
} | ||
|
||
# For ubuntu 20.04 | ||
focal() { | ||
wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add - | ||
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-focal.list http://packages.lunarg.com/vulkan/lunarg-vulkan-focal.list | ||
sudo apt update | ||
sudo apt -y install vulkan-sdk | ||
} | ||
|
||
case "$(lsb_release -cs)" in | ||
jammy) | ||
jammy | ||
;; | ||
focal) | ||
focal | ||
;; | ||
*) | ||
echo "Only Ubuntu Focal (20.04) and Jammy (22.04) are supported. Aborting." >/dev/stderr | ||
exit 1 | ||
;; | ||
esac |