Skip to content

Commit fa0c96f

Browse files
committed
[UPD] : update github actions for auto upload to draft release
1 parent c4c3c32 commit fa0c96f

File tree

8 files changed

+84
-21
lines changed

8 files changed

+84
-21
lines changed

.github/workflows/Leak.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ jobs:
4444
- name: upload artifact
4545
uses: actions/upload-artifact@v4
4646
with:
47-
name: ImGuiFileDialog_App_Unix_${{ matrix.fs }}_FS
48-
path: bin/ImGuiFileDialog_App_Unix
47+
name: ImGuiFileDialog_DemoApp_Leak_Linux_${{ matrix.fs }}_FS
48+
path: bin/ImGuiFileDialog_DemoApp_*

.github/workflows/Linux_Clang.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,14 @@ jobs:
4343
- name: upload artifact
4444
uses: actions/upload-artifact@v4
4545
with:
46-
name: ImGuiFileDialog_App_Linux_${{ matrix.fs }}_FS
47-
path: bin/ImGuiFileDialog_App_Unix
46+
name: ImGuiFileDialog_DemoApp_Linux_${{ matrix.fs }}_FS
47+
path: bin/ImGuiFileDialog_DemoApp_*
48+
- name: Upload to DRAFT release
49+
uses: softprops/action-gh-release@v2
50+
with:
51+
tag_name: nightly-draft
52+
name: Nightly Draft
53+
draft: true
54+
prerelease: false
55+
append_body: true
56+
files: bin/ImGuiFileDialog_DemoApp_*

.github/workflows/Linux_Gcc.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,14 @@ jobs:
4343
- name: upload artifact
4444
uses: actions/upload-artifact@v4
4545
with:
46-
name: ImGuiFileDialog_App_Linux_${{ matrix.fs }}_FS
47-
path: bin/ImGuiFileDialog_App_Unix
46+
name: ImGuiFileDialog_DemoApp_Linux_${{ matrix.fs }}_FS
47+
path: bin/ImGuiFileDialog_DemoApp_*
48+
- name: Upload to DRAFT release
49+
uses: softprops/action-gh-release@v2
50+
with:
51+
tag_name: nightly-draft
52+
name: Nightly Draft
53+
draft: true
54+
prerelease: false
55+
append_body: true
56+
files: bin/ImGuiFileDialog_DemoApp_*

.github/workflows/Osx_Clang.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,14 @@ jobs:
3939
- name: upload artifact
4040
uses: actions/upload-artifact@v4
4141
with:
42-
name: ImGuiFileDialog_App_Linux_${{ matrix.fs }}_FS
43-
path: bin/ImGuiFileDialog_App_Unix
42+
name: ImGuiFileDialog_DemoApp_Osx_${{ matrix.fs }}_FS
43+
path: bin/ImGuiFileDialog_DemoApp_*
44+
- name: Upload to DRAFT release
45+
uses: softprops/action-gh-release@v2
46+
with:
47+
tag_name: nightly-draft
48+
name: Nightly Draft
49+
draft: true
50+
prerelease: false
51+
append_body: true
52+
files: bin/ImGuiFileDialog_DemoApp_*

.github/workflows/Osx_Gcc.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,14 @@ jobs:
3939
- name: upload artifact
4040
uses: actions/upload-artifact@v4
4141
with:
42-
name: ImGuiFileDialog_App_Linux_${{ matrix.fs }}_FS
43-
path: bin/ImGuiFileDialog_App_Unix
42+
name: ImGuiFileDialog_DemoApp_Osx_${{ matrix.fs }}_FS
43+
path: bin/ImGuiFileDialog_DemoApp_*
44+
- name: Upload to DRAFT release
45+
uses: softprops/action-gh-release@v2
46+
with:
47+
tag_name: nightly-draft
48+
name: Nightly Draft
49+
draft: true
50+
prerelease: false
51+
append_body: true
52+
files: bin/ImGuiFileDialog_DemoApp_*

.github/workflows/Win_Msvc.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,14 @@ jobs:
3737
- name: upload artifact
3838
uses: actions/upload-artifact@v4
3939
with:
40-
name: ImGuiFileDialog_App_Win32_${{ matrix.fs }}_FS
41-
path: bin\ImGuiFileDialog_App_Win32.exe
40+
name: ImGuiFileDialog_DemoApp_Win_${{ matrix.fs }}_FS
41+
path: bin/ImGuiFileDialog_DemoApp_*
42+
- name: Upload to DRAFT release
43+
uses: softprops/action-gh-release@v2
44+
with:
45+
tag_name: nightly-draft
46+
name: Nightly Draft
47+
draft: true
48+
prerelease: false
49+
append_body: true
50+
files: bin/ImGuiFileDialog_DemoApp_*

.github/workflows/full_sources.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
name: full_sources
33

44
on:
5+
push:
6+
branches:
7+
- DemoApp
8+
paths-ignore:
9+
- 'cmake/**'
10+
- '.github/**'
11+
- 'doc/**'
12+
- 'samples/**'
513
workflow_dispatch:
614

715
jobs:
@@ -18,7 +26,7 @@ jobs:
1826
- name: upload artifact
1927
uses: actions/upload-artifact@v4
2028
with:
21-
name: ImGuiFileDialog
29+
name: ImGuiFileDialog_sources
2230
path: ${{github.workspace}}
2331

2432

CMakeLists.txt

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ if (UNIX)
3636
endif()
3737

3838
if(USE_CXX_STANDARD_20)
39+
# we can keep the old const char* everywhere
3940
if (MSVC)
40-
add_compile_options(/Zc:char8_t-) # we can keep the old const char* everywhere
41+
add_compile_options(/Zc:char8_t-)
4142
else()
42-
add_compile_options(-fno-char8_t) # we can keep the old const char* everywhere
43+
add_compile_options(-fno-char8_t)
4344
endif()
4445
endif()
4546

@@ -51,6 +52,16 @@ endif()
5152

5253
set(ORIGINAL_CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
5354

55+
set(FILESYSTEM_TYPE)
56+
if(USE_STD_FILESYSTEM)
57+
set(FILESYSTEM_TYPE "STD")
58+
elseif(USE_BOOST_FILESYSTEM)
59+
set(FILESYSTEM_TYPE "BOOST")
60+
else()
61+
set(USE_DIRENT_FILESYSTEM ON CACHE BOOL "" FORCE)
62+
set(FILESYSTEM_TYPE "DIRENT")
63+
endif()
64+
5465
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
5566
add_definitions(-DMSVC)
5667
if(USE_CXX_STANDARD_20)
@@ -177,7 +188,6 @@ endif()
177188
if (APPLE)
178189
set_target_properties(${PROJECT}
179190
PROPERTIES
180-
OUTPUT_NAME "${PROJECT}_Macos"
181191
MACOSX_BUNDLE_EXECUTABLE_NAME "${PROJECT}"
182192
MACOSX_BUNDLE_BUNDLE_NAME "${PROJECT}"
183193
FOLDER "${PROJECT}"
@@ -186,12 +196,12 @@ if (APPLE)
186196
MACOSX_BUNDLE_LONG_VERSION_STRING ""
187197
##MACOSX_BUNDLE_ICON_FILE icon.icns
188198
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/MacOSXBundleInfo.plist.in")
189-
elseif(WIN32)
190-
set_target_properties(${PROJECT} PROPERTIES OUTPUT_NAME "${PROJECT}_Win32")
191-
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
199+
endif()
192200

193-
elseif(UNIX)
194-
set_target_properties(${PROJECT} PROPERTIES OUTPUT_NAME "${PROJECT}_Unix")
201+
if(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
202+
## no name, maybe the apk in a other way
203+
else()
204+
set_target_properties(${PROJECT} PROPERTIES OUTPUT_NAME "${PROJECT}_${CMAKE_SYSTEM_NAME}_${FILESYSTEM_TYPE}_FS")
195205
endif()
196206

197207
if (USE_STD_FILESYSTEM)

0 commit comments

Comments
 (0)