Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 94 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,112 @@ on:
branches: [ "main" ]

jobs:
build-linux:
name: Build Linux Source
build-linux-x86_64-gcc14-cpp17:
name: Build Linux Source x86_64 C++17
runs-on: ubuntu-latest
env:
CC: gcc-10
CXX: g++-10
CC: gcc-14
CXX: g++-14
steps:
- uses: actions/checkout@v3
- name: Install g++-multilib
run: sudo apt-get install -y g++-10-multilib
- name: Install g++-14-multilib
run: sudo apt-get install -y g++-14-multilib
- name: Set Execute flags
run: chmod +x GeneratorScripts/GenerateProjectMake.sh && chmod +x libs/premake5/linux/premake5
- name: Generate Make files
run: cd GeneratorScripts/ && ./GenerateProjectMake.sh && cd ..
run: cd GeneratorScripts/ && ./GenerateProjectMake.sh --std=C++17 && cd ..
- name: Compile code
run: make all
build-windows:
name: Build Windows Source
run: make config=release_x86_64 all
build-linux-x86_64-gcc14-cpp20:
name: Build Linux Source x86_64 C++20
runs-on: ubuntu-latest
env:
CC: gcc-14
CXX: g++-14
steps:
- uses: actions/checkout@v3
- name: Install g++-14-multilib
run: sudo apt-get install -y g++-14-multilib
- name: Set Execute flags
run: chmod +x GeneratorScripts/GenerateProjectMake.sh && chmod +x libs/premake5/linux/premake5
- name: Generate Make files
run: cd GeneratorScripts/ && ./GenerateProjectMake.sh --std=C++17 && cd ..
- name: Compile code
run: make config=release_x86_64 all
build-linux-x86-gcc14-cpp17:
name: Build Linux Source x86 C++17
runs-on: ubuntu-latest
env:
CC: gcc-14
CXX: g++-14
steps:
- uses: actions/checkout@v3
- name: Install g++-14-multilib
run: sudo apt-get install -y g++-14-multilib
- name: Set Execute flags
run: chmod +x GeneratorScripts/GenerateProjectMake.sh && chmod +x libs/premake5/linux/premake5
- name: Generate Make files
run: cd GeneratorScripts/ && ./GenerateProjectMake.sh --std=C++17 && cd ..
- name: Compile code
run: make config=release_x86 all
build-linux-x86-gcc14-cpp20:
name: Build Linux Source x86 C++20
runs-on: ubuntu-latest
env:
CC: gcc-14
CXX: g++-14
steps:
- uses: actions/checkout@v3
- name: Install g++-14-multilib
run: sudo apt-get install -y g++-14-multilib
- name: Set Execute flags
run: chmod +x GeneratorScripts/GenerateProjectMake.sh && chmod +x libs/premake5/linux/premake5
- name: Generate Make files
run: cd GeneratorScripts/ && ./GenerateProjectMake.sh --std=C++17 && cd ..
- name: Compile code
run: make config=release_x86 all
build-windows-x86_64-cpp17:
name: Build Windows Source x86_64 C++17
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Generate Project files
run: cd GeneratorScripts && .\GenerateProjectVS2022.bat --std=C++17 && cd ..
- name: Compile code
run: '"C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\Tools\\VsDevCmd.bat" && msbuild /m /p:Configuration=Release /p:Platform=x64 ModernDialogs.sln'
build-windows-x86_64-cpp20:
name: Build Windows Source x86_64 C++20
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Generate Project files
run: cd GeneratorScripts && .\GenerateProjectVS2022.bat && cd ..
run: cd GeneratorScripts && .\GenerateProjectVS2022.bat --std=C++20 && cd ..
- name: Compile code
run: '"C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\Tools\\VsDevCmd.bat" && msbuild /m ModernDialogs.sln'
run: '"C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\Tools\\VsDevCmd.bat" && msbuild /m /p:Configuration=Release /p:Platform=x64 ModernDialogs.sln'
build-windows-x86-cpp17:
name: Build Windows Source x86 C++17
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Generate Project files
run: cd GeneratorScripts && .\GenerateProjectVS2022.bat --std=C++17 && cd ..
- name: Compile code
run: '"C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\Tools\\VsDevCmd.bat" && msbuild /m /p:Configuration=Release /p:Platform=Win32 ModernDialogs.sln'
build-windows-x86-cpp20:
name: Build Windows Source x86 C++20
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Generate Project files
run: cd GeneratorScripts && .\GenerateProjectVS2022.bat --std=C++20 && cd ..
- name: Compile code
run: '"C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\Tools\\VsDevCmd.bat" && msbuild /m /p:Configuration=Release /p:Platform=Win32 ModernDialogs.sln'

2 changes: 1 addition & 1 deletion Example/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
MIT License

Copyright (c) 2020 - 2022 Jan "GamesTrap" Sch�rkamp
Copyright (c) 2020 - 2025 Jan "GamesTrap" Schürkamp

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion GeneratorScripts/GenerateProjectCodelite.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
pushd %~dp0
call ..\libs\premake5\windows\premake5.exe --file=../premake5.lua codelite
call ..\libs\premake5\windows\premake5.exe --file=../premake5.lua codelite %*
IF %ERRORLEVEL% NEQ 0 (
PAUSE
)
Expand Down
2 changes: 1 addition & 1 deletion GeneratorScripts/GenerateProjectCodelite.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
exec="../libs/premake5/linux/./premake5 --file=../premake5.lua codelite"
exec="../libs/premake5/linux/./premake5 --file=../premake5.lua codelite $@"
$exec
if [[ "$?" -ne 0 ]]; then
read -s -N 1 -p "Press any key to continue...";
Expand Down
2 changes: 1 addition & 1 deletion GeneratorScripts/GenerateProjectMake.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
pushd %~dp0
call ..\libs\premake5\windows\premake5.exe --file=../premake5.lua gmake2
call ..\libs\premake5\windows\premake5.exe --file=../premake5.lua gmake2 %*
IF %ERRORLEVEL% NEQ 0 (
PAUSE
)
Expand Down
2 changes: 1 addition & 1 deletion GeneratorScripts/GenerateProjectMake.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
exec="../libs/premake5/linux/./premake5 --file=../premake5.lua gmake2"
exec="../libs/premake5/linux/./premake5 --file=../premake5.lua gmake2 $@"
$exec
if [[ "$?" -ne 0 ]]; then
read -s -N 1 -p "Press any key to continue...";
Expand Down
2 changes: 1 addition & 1 deletion GeneratorScripts/GenerateProjectVS2017.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
pushd %~dp0
call ..\libs\premake5\windows\premake5.exe --file=../premake5.lua vs2017
call ..\libs\premake5\windows\premake5.exe --file=../premake5.lua vs2017 %*
IF %ERRORLEVEL% NEQ 0 (
PAUSE
)
Expand Down
2 changes: 1 addition & 1 deletion GeneratorScripts/GenerateProjectVS2017.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
exec="../libs/premake5/linux/./premake5 --file=../premake5.lua vs2017"
exec="../libs/premake5/linux/./premake5 --file=../premake5.lua vs2017 $@"
$exec
if [[ "$?" -ne 0 ]]; then
read -s -N 1 -p "Press any key to continue...";
Expand Down
2 changes: 1 addition & 1 deletion GeneratorScripts/GenerateProjectVS2019.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
pushd %~dp0
call ..\libs\premake5\windows\premake5.exe --file=../premake5.lua vs2019
call ..\libs\premake5\windows\premake5.exe --file=../premake5.lua vs2019 %*
IF %ERRORLEVEL% NEQ 0 (
PAUSE
)
Expand Down
2 changes: 1 addition & 1 deletion GeneratorScripts/GenerateProjectVS2019.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
exec="../libs/premake5/linux/./premake5 --file=../premake5.lua vs2019"
exec="../libs/premake5/linux/./premake5 --file=../premake5.lua vs2019 $@"
$exec
if [[ "$?" -ne 0 ]]; then
read -s -N 1 -p "Press any key to continue...";
Expand Down
2 changes: 1 addition & 1 deletion GeneratorScripts/GenerateProjectVS2022.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
pushd %~dp0
call ..\libs\premake5\windows\premake5.exe --file=../premake5.lua vs2022
call ..\libs\premake5\windows\premake5.exe --file=../premake5.lua vs2022 %*
IF %ERRORLEVEL% NEQ 0 (
PAUSE
)
Expand Down
2 changes: 1 addition & 1 deletion GeneratorScripts/GenerateProjectVS2022.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
exec="../libs/premake5/linux/./premake5 --file=../premake5.lua vs2022"
exec="../libs/premake5/linux/./premake5 --file=../premake5.lua vs2022 $@"
$exec
if [[ "$?" -ne 0 ]]; then
read -s -N 1 -p "Press any key to continue...";
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020-2023 Jan "GamesTrap" Schürkamp
Copyright (c) 2020-2025 Jan "GamesTrap" Schürkamp

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading