-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
191 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Coveralls | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
tags: | ||
- v*.*.* | ||
- test* | ||
paths: | ||
- '!README.md' | ||
- '!CONTRIBUTING.md' | ||
- '!docs/**' | ||
- 'include/**' | ||
- 'demo/**' | ||
- '.github/**' | ||
- 'tests/**' | ||
|
||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- '!README.md' | ||
- '!CONTRIBUTING.md' | ||
- '!docs/**' | ||
- 'include/**' | ||
- 'demo/**' | ||
- '.github/**' | ||
- 'tests/**' | ||
|
||
env: | ||
BUILD_TYPE: Debug | ||
|
||
jobs: | ||
Windows: | ||
runs-on: windows-2022 | ||
|
||
defaults: | ||
run: | ||
shell: powershell | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: x64 | ||
|
||
- name: Coveralls GitHub Action | ||
uses: coverallsapp/[email protected] | ||
|
||
- name: Configure CMake | ||
run: cmake -B build_test tests | ||
|
||
- name: Build | ||
run: cmake --build build_test --config ${{env.BUILD_TYPE}} | ||
|
||
- name: Test | ||
run: ctest -C ${{env.BUILD_TYPE}} --test-dir build_test --output-on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: MinGW | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- v*.*.* | ||
paths: | ||
- '!README.md' | ||
- '!CONTRIBUTING.md' | ||
- '!docs/**' | ||
- 'include/**' | ||
- 'demo/**' | ||
- '.github/**' | ||
- 'tests/**' | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- '!README.md' | ||
- '!CONTRIBUTING.md' | ||
- '!docs/**' | ||
- 'include/**' | ||
- 'demo/**' | ||
- '.github/**' | ||
- 'tests/**' | ||
|
||
|
||
jobs: | ||
x64: | ||
runs-on: windows-2022 | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Dependencies | ||
shell: powershell | ||
run: | | ||
choco install -y 7zip.install | ||
curl.exe -OL https://github.com/niXman/mingw-builds-binaries/releases/download/13.2.0-rt_v11-rev0/x86_64-13.2.0-release-win32-seh-msvcrt-rt_v11-rev0.7z | ||
7z x x86_64-13.2.0-release-win32-seh-msvcrt-rt_v11-rev0.7z | ||
- name: Configure CMake | ||
run: | | ||
cmake -B build_mingw -DCMAKE_BUILD_TYPE=Debug -G "MinGW Makefiles" -DCCACHE_ENABLE=OFF demo | ||
env: | ||
CC: ${{github.workspace}}/mingw64/bin/gcc.exe | ||
CXX: ${{github.workspace}}/mingw64/bin/g++.exe | ||
|
||
- name: Build | ||
run: | | ||
cmake --build build_mingw --config Debug | ||
env: | ||
CC: ${{github.workspace}}/mingw64/bin/gcc.exe | ||
CXX: ${{github.workspace}}/mingw64/bin/g++.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
build | ||
build_test | ||
build_mingw | ||
.vscode | ||
.vimspector.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,58 @@ | ||
cmake_minimum_required(VERSION 3.6.0) | ||
project(fluent-tray-demo VERSION 1.0) | ||
|
||
add_compile_options( | ||
/W4 | ||
/std:c11 | ||
# /MT | ||
/D_UNICODE | ||
/DUNICODE | ||
/utf-8 | ||
/DEBUG | ||
/DDEBUG | ||
) | ||
if(${MSVC}) | ||
add_compile_options( | ||
/W4 | ||
/std:c11 | ||
# /MT | ||
/D_UNICODE | ||
/DUNICODE | ||
/utf-8 | ||
/DEBUG | ||
/DDEBUG | ||
) | ||
else() | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
set(CMAKE_CXX_FLAGS | ||
-static | ||
-std=c++17 | ||
-lstdc++ | ||
-lstdc++fs | ||
-lgcc | ||
-Wall | ||
-Wextra | ||
-Wcast-align | ||
-Wno-unknown-pragmas | ||
-Wcast-qual | ||
-Wctor-dtor-privacy | ||
-Wdelete-non-virtual-dtor | ||
-Wdouble-promotion | ||
-Weffc++ | ||
-Wold-style-cast | ||
-Woverloaded-virtual | ||
-Wreorder | ||
-Wshadow | ||
-Wsuggest-override | ||
-Wuseless-cast | ||
-fdiagnostics-color | ||
-DUNICODE | ||
-D_UNICODE | ||
-DWINVER=0x0A00 | ||
-D_WIN32_WINNT=0x0A00 | ||
--coverage | ||
) | ||
list(REMOVE_DUPLICATES CMAKE_CXX_FLAGS) | ||
string(REPLACE ";" " " CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") | ||
|
||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g3 -DDEBUG") | ||
set(CMAKE_SH "CMAKE_SH-NOTFOUND") | ||
endif() | ||
|
||
include_directories(../include) | ||
add_executable(${PROJECT_NAME} demo.cpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters