Skip to content

Commit

Permalink
create a GitHub Action to automatically build the server application
Browse files Browse the repository at this point in the history
  • Loading branch information
catink123 authored Jan 4, 2024
1 parent a9574b1 commit 8d65dbf
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build Windows Debug and Release configurations

on:
push:
branches: [ "main" ]

jobs:
build_and_upload:
runs-on: windows-latest

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

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

- name: Build Debug
uses: lukka/run-cmake@v10.7
with:
configurePreset: "windows-x64-debug"
buildPreset: "windows-x64-debug"

- name: Build Release
uses: lukka/run-cmake@v10.7
with:
configurePreset: "windows-x64-release"
buildPreset: "windows-x64-release"

- name: Upload Debug artifacts
uses: actions/upload-artifact@v3
with:
name: server-debug
path: out/windows-x64-debug/Debug

- name: Upload Release artifacts
uses: actions/upload-artifact@v3
with:
name: server-release
path: out/windows-x64-release/Release

0 comments on commit 8d65dbf

Please sign in to comment.