Skip to content

Commit

Permalink
ci: test cuda container
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jan 19, 2025
1 parent 33294c5 commit 0b7ae10
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ on:
jobs:
build-linux-x86_64:
runs-on: ubuntu-22.04
container: nvidia/cuda:12.6.2-devel-ubuntu22.04
steps:
- name: Upgrade git
run: apt-get update && apt-get install -y git
- uses: actions/checkout@v4
with:
submodules: "true"
Expand Down Expand Up @@ -55,7 +58,10 @@ jobs:

build-linux-arm64:
runs-on: ubuntu-22.04-arm
container: nvidia/cuda:12.6.2-devel-ubuntu22.04
steps:
- name: Upgrade git
run: apt-get update && apt-get install -y git
- uses: actions/checkout@v4
with:
submodules: "true"
Expand All @@ -72,7 +78,8 @@ jobs:
- uses: actions/[email protected]
with:
node-version: 20
cache: "yarn"
- name: Install yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Prepare & build
Expand Down
5 changes: 4 additions & 1 deletion scripts/prepare-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ export DEBIAN_FRONTEND=noninteractive

ARCH=${ARCH:-${1:-$(uname -m)}}

run_as_root apt-get update
run_as_root apt-get install -qy lsb-release wget

if [ $ARCH == "x86_64" ]; then
DISTRO=$(lsb_release -c -s)
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | run_as_root tee /etc/apt/trusted.gpg.d/lunarg.asc
run_as_root wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.280-$DISTRO.list https://packages.lunarg.com/vulkan/1.3.280/lunarg-vulkan-1.3.280-$DISTRO.list
run_as_root apt-get update
run_as_root apt-get install -qy vulkan-sdk
run_as_root apt-get install -qy vulkan-sdk cmake pkg-config build-essential libx11-xcb-dev libxkbcommon-dev libwayland-dev libxrandr-dev
else
run_as_root apt-get update
run_as_root apt-get install -qy curl gnupg2
Expand Down

0 comments on commit 0b7ae10

Please sign in to comment.