-
Notifications
You must be signed in to change notification settings - Fork 41
45 lines (40 loc) · 1.49 KB
/
ubuntu-jammy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Ubuntu 22.04 (Jammy Jellyfish)
on:
push:
branches: [ develop, release/** ]
pull_request:
branches: [ develop, release/** ]
# The ROCm versions that this image is based of.
# Always write this down as major.minor.patch
env:
ROCM_VERSION: 6.1.2
AMDGPU_INSTALLER_VERSION: "6.1.60102-1"
jobs:
build:
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apt-get update -qq &&
apt-get install -y build-essential g++ glslang-tools \
python3 python3-pip libglfw3-dev libvulkan-dev locales wget
python3 -m pip install --upgrade pip
python3 -m pip install cmake
- name: Install ROCm
run: |
export DEBIAN_FRONTEND=noninteractive
wget https://repo.radeon.com/amdgpu-install/$ROCM_VERSION/ubuntu/jammy/amdgpu-install_$AMDGPU_INSTALLER_VERSION_all.deb
apt install ./amdgpu-install_$AMDGPU_INSTALLER_VERSION_all.deb
amdgpu-install -y --usecase=hiplibsdk --no-dkms
echo "/opt/rocm/bin" >> $GITHUB_PATH
echo "ROCM_PATH=/opt/rocm" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/opt/rocm/lib:${LD_LIBRARY_PATH}" >> $GITHUB_ENV
- name: Configure and Build
shell: bash
run: |
mkdir build
cd build
cmake ..