Skip to content

Add clang-format configuration and formatting checks (#77) #12

Add clang-format configuration and formatting checks (#77)

Add clang-format configuration and formatting checks (#77) #12

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: Jimver/cuda-toolkit@v0.2.30
id: cuda-toolkit
with:
cuda: "13.1.0"
- name: CUDA info
run: |
echo "Installed cuda version is: ${{ steps.cuda-toolkit.outputs.cuda }}"
echo "Cuda install location: ${{ steps.cuda-toolkit.outputs.CUDA_PATH }}"
nvcc -V
- name: Install build deps (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y ninja-build zlib1g-dev
- name: Configure (Linux)
if: runner.os == 'Linux'
run: |
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCUPDLPX_BUILD_TESTS=OFF
- name: Build (Linux)
if: runner.os == 'Linux'
run: |
cmake --build build --clean-first
- name: Configure (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
cmake -B build `
-DCMAKE_CONFIGURATION_TYPES=Release `
-DCUPDLPX_BUILD_TESTS=OFF
- name: Build (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
cmake --build build --clean-first --config Release