Skip to content

Commit

Permalink
Update and rename cmake-single-platform.yml to build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cjhoward committed Oct 27, 2023
1 parent 4067d62 commit 8f660a3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 40 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build

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

env:
BUILD_TYPE: Release

jobs:
windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}

40 changes: 0 additions & 40 deletions .github/workflows/cmake-single-platform.yml

This file was deleted.

0 comments on commit 8f660a3

Please sign in to comment.