Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
endurodave committed Dec 8, 2024
1 parent 68869b5 commit 738a2b6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: C++ Delegates Build and Test
name: Ubuntu

on:
push:
Expand All @@ -16,14 +16,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2 # Checkout the repository code

#- name: Set up CMake
# uses: actions/setup-cmake@v3 # Set up CMake

#- name: Set up GCC
# uses: actions/setup-gcc@v1 # Set up GCC compiler (or use setup-clang if needed)

- name: Configure CMake
run: cmake -S . -B Build # Configure CMake to generate build files in 'Build' directory
run: cmake -S . -B Build -DENABLE_UNIT_TESTS=ON # Configure CMake to generate build files in 'Build' directory

- name: Build
run: cmake --build Build # Build the project using CMake
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/cmake_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Windows

on:
push:
branches:
- wip/refactoring # Trigger on push to 'wip/refactoring' branch
pull_request:
branches:
- wip/refactoring # Trigger on pull request targeting 'wip/refactoring' branch

jobs:
build:
runs-on: windows-latest # Use Windows environment for the build

steps:
- name: Checkout code
uses: actions/checkout@v2 # Checkout the repository code

- name: Set up Visual Studio
uses: microsoft/[email protected] # Set up Visual Studio environment (MSBuild)

- name: Configure CMake
run: cmake -S . -B Build -G "Visual Studio 16 2019" -DENABLE_UNIT_TESTS=ON # Configure CMake for Visual Studio 2019

- name: Build
run: cmake --build Build --config Release # Build the project using CMake with Release configuration

- name: Run DelegateApp
run: .\Build\Release\DelegateApp.exe # Run the built executable (adjust path for MSBuild)

0 comments on commit 738a2b6

Please sign in to comment.