Skip to content

Commit

Permalink
Add install prereqs
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-forbes-cp committed Oct 2, 2024
1 parent 18d0780 commit abd0659
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/actions/setup_ubuntu_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
description: 'Major llvm version to use for fetching llvm cache e.g. 17'
default: 17
ubuntu_version:
description: 'Version of ubuntu used for cache retrieval'
description: 'Version of ubuntu used for cache retrieval and prerequisites'
default: 22.04
save:
description: 'Save the build cache at the end - not for PR testing'
Expand All @@ -24,10 +24,20 @@ runs:
steps:
- name: Install prerequisites
shell: bash
env:
UBUNTU_VER : '${{ inputs.ubuntu_version }}'
ARCH : '${{ inputs.arch }}'
run: |
sudo apt-get install -y spirv-tools
pip install lit
pip install lit clang-format==17.0.6 virtualenv
if [ "$ARCH" = "x86" ]; then sudo dpkg --add-architecture i386 ; fi
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
if [ "$UBUNTU_VER" = "20.04" ]; then sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.243-focal.list https://packages.lunarg.com/vulkan/1.3.243/lunarg-vulkan-1.3.243-focal.list; fi
if [ "$UBUNTU_VER" = "22.04" ]; then sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.243-jammy.list https://packages.lunarg.com/vulkan/1.3.243/lunarg-vulkan-1.3.243-jammy.list; fi
if [ "$UBUNTU_VER" = "24.04" ]; then sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-noble.list https://packages.lunarg.com/vulkan/lunarg-vulkan-noble.list; fi
sudo apt-get update
sudo apt-get install --yes spirv-tools doxygen
sudo apt-get install --yes vulkan-sdk
if [ "$ARCH" = "x86" ]; then sudo apt-get install --yes gcc-multilib g++-multilib libc6-dev:i386 lib32tinfo-dev ; fi
- name: Install Ninja
uses: llvm/actions/install-ninja@main

Expand All @@ -46,4 +56,3 @@ runs:
key: sccache-build
variant: sccache
save: ${{ inputs.save }}

0 comments on commit abd0659

Please sign in to comment.