Skip to content

Commit

Permalink
[ADD] : add github actions for Win/Linux/Macos
Browse files Browse the repository at this point in the history
  • Loading branch information
aiekick committed Jun 8, 2024
1 parent 7f56fec commit 77462ab
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/Linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Linux

on:
push:
branches:
- DemoApp

jobs:
build_Linux_Ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: checkout submodules
run : git submodule update --init --recursive
- name: Install OpenGL lib / Requirement for Glfw3
run : sudo apt-get update && sudo apt-get install libgl1-mesa-dev libx11-dev libxi-dev libxrandr-dev libxinerama-dev libxcursor-dev
- name: configure
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DPLUGIN_ENABLE_LCL_BROKER=ON
- name: build
run: cmake --build build
- name: upload artifact
uses: actions/upload-artifact@v1
with:
name: CashMe_Linux_x32
path: bin/CashMe_Linux_x32
25 changes: 25 additions & 0 deletions .github/workflows/Osx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Osx

on:
push:
branches:
- DemoApp

jobs:
build_Osx:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: checkout submodules
run : git submodule update --init --recursive
- name: Install OpenGL lib / Requirement for Glfw3
run : brew update
- name: configure
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DPLUGIN_ENABLE_LCL_BROKER=ON
- name: build
run: cmake --build build
- name: upload artifact
uses: actions/upload-artifact@v1
with:
name: CashMe_Darwin_x32.app
path: bin/CashMe_Darwin_x32.app
23 changes: 23 additions & 0 deletions .github/workflows/Win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Win

on:
push:
branches:
- DemoApp

jobs:
build_Win_latest:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: checkout submodules
run : git submodule update --init --recursive
- name: configure
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DPLUGIN_ENABLE_LCL_BROKER=ON
- name: build
run: cmake --build build --config Release
- name: upload artifact
uses: actions/upload-artifact@v1
with:
name: CashMe_Windows_x64
path: bin\CashMe_Windows_x64.exe
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ target_link_libraries(${PROJECT}
${FMT_LIBRARIES}
)

# define for let CashMe detext what is the config of a plugin
# define for let CashMe detect what is the config of a plugin
target_compile_definitions(${PROJECT} PRIVATE -DPLUGIN_RUNTIME_CONFIG=$<$<CONFIG:Debug>:"_Debug">$<$<CONFIG:Release>:"_Release">$<$<CONFIG:MinSizeRel>:"_MinSizeRel">$<$<CONFIG:RelWithDebInfo>:"_RelWithDebInfo">)
target_compile_definitions(${PROJECT} PRIVATE -DPROJECT_EXT=".cash")
target_compile_definitions(${PROJECT} PRIVATE -DPROJECT_EXT_DOT_LESS="cash")
Expand Down

0 comments on commit 77462ab

Please sign in to comment.