Skip to content

Instantly share code, notes, and snippets.

@mr-yoo
Created September 11, 2025 17:31
Show Gist options
  • Save mr-yoo/dae6df49ce2c800e5c5aeed6c71764a6 to your computer and use it in GitHub Desktop.
Save mr-yoo/dae6df49ce2c800e5c5aeed6c71764a6 to your computer and use it in GitHub Desktop.
Github Action Example
name: The-First-CI
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
- run: cmake --build build --parallel
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
- run: cmake --build build --parallel
- run: ctest --test-dir build --output-on-failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment