Skip to content

Add github workflow to compile for HIP and fix some HIP related issues #144

Add github workflow to compile for HIP and fix some HIP related issues

Add github workflow to compile for HIP and fix some HIP related issues #144

Workflow file for this run

name: CMake

Check failure on line 1 in .github/workflows/cmake.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cmake.yml

Invalid workflow file

(Line: 25, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.IS_MAIN, (Line: 32, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.IS_MAIN, (Line: 39, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.IS_MAIN, (Line: 46, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.IS_MAIN, (Line: 53, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.IS_MAIN
on:
push:
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Debug
IS_MAIN: ${{ github.ref == 'refs/heads/main' && 'true' || '' }}
jobs:
build-cuda:
uses: ./.github/workflows/cmake-run-cuda.yml
with:
cuda-version: "12.8.0"
build-hip:
needs: build-cuda # Only attempt HIP after CUDA was succesfull
uses: ./.github/workflows/cmake-run-hip.yml
with:
rocm-version: "6.3.0"
build-cuda-13-0:
if: ${{ env.IS_MAIN }}
needs: build-cuda
uses: ./.github/workflows/cmake-run-cuda.yml
with:
cuda-version: "13.0.0"
build-cuda-12-6:
if: ${{ env.IS_MAIN }}
needs: build-cuda
uses: ./.github/workflows/cmake-run-cuda.yml
with:
cuda-version: "12.6.0"
build-cuda-12-5:
if: ${{ env.IS_MAIN }}
needs: build-cuda
uses: ./.github/workflows/cmake-run-cuda.yml
with:
cuda-version: "12.5.0"
build-hip-6-2:
if: ${{ env.IS_MAIN }}
needs: build-hip
uses: ./.github/workflows/cmake-run-hip.yml
with:
rocm-version: "6.2.0"
build-hip-6-4:
if: ${{ env.IS_MAIN }}
needs: build-hip
uses: ./.github/workflows/cmake-run-hip.yml
with:
rocm-version: "6.4.0"