Skip to content

Update build workflows #11

Update build workflows

Update build workflows #11

name: Build HIP-Basic
on:
push:
branches: [ develop, release/** ]
paths:
- 'HIP-Basic/**'
- '.github/workflows/**'
pull_request:
branches: [ develop, release/** ]
paths:
- 'HIP-Basic/**'
- '.github/workflows/**'
env:
ROCM_VERSION: 6.2
AMDGPU_INSTALLER_VERSION: 6.2.60200-1
jobs:
build:
name: "Build HIP Examples"
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 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 update -qq &&
apt-get -y install rocm-dev rocm-llvm-dev
apt-get autoclean
- name: Configure and Build
shell: bash
run: |
cd HIP-Basic && mkdir build && cd build
cmake -DGPU_ARCHITECTURES=all -S ..
cmake --build . -j $(nproc)