Skip to content

Commit

Permalink
build: add GitHub Actions build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeLankamp committed May 8, 2024
1 parent ae1a4d6 commit 78d5f3a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
build_type: ['Debug','Release']

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Configure project in ${{ matrix.build_type }} mode
run: cmake -B build . -D CMAKE_BUILD_TYPE=${{ matrix.build_type }}

- name: Build project in ${{ matrix.build_type }} mode
run: cmake --build build --config ${{ matrix.build_type }}

0 comments on commit 78d5f3a

Please sign in to comment.