-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David Galiffi <David.Galiffi@amd.com>
- Loading branch information
1 parent
33dff59
commit 566395e
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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,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/${{ env.ROCM_VERSION }}/ubuntu/jammy/amdgpu-install_${{ env.AMDGPU_INSTALLER_VERSION }}_all.deb | ||
apt -y install ./amdgpu-install_${{ env.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 .. |