From 8d432bef70a917fa924009642b90bd044941a7f9 Mon Sep 17 00:00:00 2001 From: David Galiffi Date: Fri, 2 Aug 2024 19:10:11 -0400 Subject: [PATCH] Build Workflow Signed-off-by: David Galiffi --- .github/workflows/ubuntu-jammy.yml | 61 ++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/ubuntu-jammy.yml diff --git a/.github/workflows/ubuntu-jammy.yml b/.github/workflows/ubuntu-jammy.yml new file mode 100644 index 00000000..8219d853 --- /dev/null +++ b/.github/workflows/ubuntu-jammy.yml @@ -0,0 +1,61 @@ +name: Ubuntu 22.04 (Jammy Jellyfish) + +on: + push: + branches: [ develop, release/** ] + paths: + - 'HIP-Basic/**' + - '.github/workflows/**' + paths-ignore: + - '*.md' + - '*.sln' + pull_request: + branches: [ develop, release/** ] + paths: + - 'HIP-Basic/**' + - '.github/workflows/**' + paths-ignore: + - '*.md' + - '*.sln' + +# The ROCm versions that this image is based of. +# Always write this down as major.minor.patch +env: + ROCM_VERSION: 6.2 + AMDGPU_INSTALLER_VERSION: 6.2.60200-1 + +jobs: + build: + name: "Build HIP-Basic" + 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 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 + 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 -DGPU_ARCHITECTURES=all -S .. + cmake --build . -j 4