Skip to content

sinpen dulu

sinpen dulu #66

Workflow file for this run

name: CMake Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake clang
- name: Cache CMake build
uses: actions/cache@v4
with:
path: build
key: build-cache-${{ runner.os }}-${{ hashFiles('**/CMakeLists.txt', '**/*.cpp', '**/*.h') }}
restore-keys: |
build-cache-${{ runner.os }}-
- name: Install libpng
run: sudo apt-get install -y libpng-dev
- name: Configure CMake
run: cmake -S . -B build
- name: Build
run: cmake --build build
- name: Run ctest
working-directory: build
run: ctest --output-on-failure