Skip to content

Create a build test CI for the HIP Examples #12

Create a build test CI for the HIP Examples

Create a build test CI for the HIP Examples #12

Workflow file for this run

name: Ubuntu 22.04 (Jammy Jellyfish)
on:
push:
branches: [ develop, release/** ]
paths-ignore:
- '*.md'
- '*.sln'
- '.gitlab/**'
- '.githooks/**'
- '/azuredevops/**'
- 'Dockerfiles/**'
pull_request:
branches: [ develop, release/** ]
paths-ignore:
- '*.md'
- '*.sln'
- '.gitlab/**'
- '.githooks/**'
- '/azuredevops/**'
- 'Dockerfiles/**'
# 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:
# - name: Free Disk Space
# uses: jlumbroso/free-disk-space@v1.2.0
# with:
# tool-cache: false
# android: true
# dotnet: true
# haskell: true
# large-packages: false
# swap-storage: false
- 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 Dev
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-get -y install ./amdgpu-install_${{ env.AMDGPU_INSTALLER_VERSION }}_all.deb
apt-get -y install rocm-dev
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
apt-get autoclean
- name: Configure and Build
shell: bash
run: |
cd HIP-Basic && mkdir build && cd build
cmake ..