Skip to content

Update cmake-single-platform.yml #9

Update cmake-single-platform.yml

Update cmake-single-platform.yml #9

name: CMake on a single platform
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
container:
image: nvidia/cuda:12.3.2-devel-ubuntu22.04
steps:
- uses: actions/checkout@v3
with:
# Fetches all history for all tags and branches, necessary for a complete submodule update
fetch-depth: 0
- name: Initialize and Update Git Submodules
run: |
git submodule sync
git submodule update --init --recursive
- name: Install CMake
run: |
apt-get update
apt-get install -y cmake
# Note: The CUDA toolkit is already included in the container image, so we don't need the Jimver/cuda-toolkit action anymore.
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}