Skip to content

Commit

Permalink
Update and rename c-cpp.yml to build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
subugt authored Jul 24, 2024
1 parent e87ef15 commit f501635
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 33 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Test

on: [push, pull_request]

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup MSVC
uses: microsoft/setup-msbuild@v1.0.2
with:
vs-version: 'latest'

- name: Setup CMake
uses: lukka/setup-cmake@v3
with:
cmake-version: 'latest'

- name: Configure CMake
run: cmake -S . -B build -G "Visual Studio 17 2022"

- name: Build with MSBuild
run: cmake --build build --config Release

- name: Run tests
run: |
cd build
ctest --output-on-failure
33 changes: 0 additions & 33 deletions .github/workflows/c-cpp.yml

This file was deleted.

0 comments on commit f501635

Please sign in to comment.