Skip to content

Commit

Permalink
Add test build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirdEyeSqueegee committed Sep 13, 2023
1 parent 04b2ddd commit 4944717
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: Format
on:
push:
branches: main
paths:
- "**.json"
- "**.yml"
repository_dispatch:
types: format-event
workflow_dispatch:

permissions:
contents: write
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/testbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test Build

on:
push:
branches: main
paths:
- "**.h"
- "**.cpp"
workflow_dispatch:

env:
VCPKG_COMMIT_ID: e44d60e6bf0964064bf69667cd9f3e91dc383c7c

jobs:
test-build:
runs-on: windows-latest
strategy:
matrix:
preset:
- debug
- release
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get CMake
uses: lukka/get-cmake@latest

- name: Setup vcpkg
uses: lukka/[email protected]
with:
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }}

- name: Run CMake
uses: lukka/[email protected]
with:
configurePreset: build-${{ matrix.preset }}-msvc
buildPreset: ${{ matrix.preset }}-msvc

- name: Repository Dispatch
uses: peter-evans/[email protected]
with:
event-type: format-event

0 comments on commit 4944717

Please sign in to comment.