From c72582af05decfdb0f245b8a2161c72f974a7fdc 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 | 47 ++++++++++++++++++++++++++++++ 1 file changed, 47 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..9a814158 --- /dev/null +++ b/.github/workflows/ubuntu-jammy.yml @@ -0,0 +1,47 @@ +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.0 + +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-tool gnupg + 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 + mkdir -p /etc/apt/keyrings + wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - + echo "deb [arch=amd64, signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/$ROCM_VERSION_APT/ jammy main" > /etc/apt/sources.list.d/rocm.list + printf 'Package: *\nPin: origin "repo.radeon.com"\nPin-Priority: 9001\n' > /etc/apt/preferences.d/radeon.pref + apt-get update -qq + apt-get install -y rocm-hip-sdk + 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 ..