Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add a windows entry to actions.yml #406

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
816d104
add a windows entry to actions.yml
treefrogframework Nov 19, 2024
ab88185
updated
treefrogframework Nov 19, 2024
d5387f3
updated
treefrogframework Nov 19, 2024
44d238d
update
treefrogframework Nov 19, 2024
57b7a94
updated
treefrogframework Nov 19, 2024
41ae885
update
treefrogframework Nov 19, 2024
60eeaad
updat
treefrogframework Nov 19, 2024
046fe1e
update
treefrogframework Nov 19, 2024
df749bd
updated
treefrogframework Nov 19, 2024
9a6fd7e
update
treefrogframework Nov 19, 2024
71e650d
updated appveyor.yml
treefrogframework Nov 19, 2024
e1739f9
updated appveyor.yml
treefrogframework Nov 19, 2024
dc0fb40
updated appveyor.yml
treefrogframework Nov 19, 2024
e5a98d1
updated appveyor.yml
treefrogframework Nov 19, 2024
467ff23
updated appveyor.yml
treefrogframework Nov 19, 2024
0fcc1fe
updated appveyor.yml
treefrogframework Nov 19, 2024
006de64
updated appveyor.yml
treefrogframework Nov 19, 2024
b24f558
updated appveyor.yml
treefrogframework Nov 19, 2024
e4c407c
updated appveyor.yml
treefrogframework Nov 19, 2024
4b49103
updated appveyor.yml
treefrogframework Nov 19, 2024
655f9e8
updated appveyor.yml
treefrogframework Nov 19, 2024
18a5bbf
updated appveyor.yml
treefrogframework Nov 19, 2024
8ab0cfb
updated appveyor.yml
treefrogframework Nov 19, 2024
ce5e2ae
updated appveyor.yml
treefrogframework Nov 19, 2024
7bffd2a
updated appveyor.yml
treefrogframework Nov 19, 2024
a350cbb
updated appveyor.yml
treefrogframework Nov 19, 2024
e4e0c1c
updated appveyor.yml
treefrogframework Nov 19, 2024
979ef0a
updated appveyor.yml
treefrogframework Nov 19, 2024
9a10ff8
updated appveyor.yml
treefrogframework Nov 19, 2024
38c9300
Updated
aoyama-morpho Nov 19, 2024
7d88551
Updated
aoyama-morpho Nov 19, 2024
e9f6ee6
Updated
aoyama-morpho Nov 20, 2024
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
105 changes: 105 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,108 @@ jobs:
- name: releasetest
run: |
$GITHUB_WORKSPACE/tools/test/releasetest/releasetest

build-windows-msvc2022-qt67:
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.7.3'
host: 'windows'
target: 'desktop'
# - name: Set up MSBuild
# uses: microsoft/setup-msbuild@v2
# with:
# vs-version: '[17.6,17.13)'
- name: Install VisualStudio tools
run: |
choco install visualstudio2022community --package-parameters "--includeRecommended --includeOptional"
choco install visualstudio2022buildtools
choco install visualstudio2022-workload-nativedesktop
choco install visualstudio2022-workload-vctools
choco install jom
- name: Set up MSVC environment
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
set CL=/MP
set
where where
where cl
where devenv
where nmake
where jom
- name: Configure for debug
shell: cmd
run: |
qmake -version
.\configure.bat --enable-debug
- name: Build for debug
shell: cmd
run: |
cd src
jom
jom install
cd ..\tools
jom
jom install
- name: Test modules
shell: cmd
run: |
cd test
testall.bat
- name: Configure for release
shell: cmd
run: |
.\configure.bat
- name: Build for release
shell: cmd
run: |
cd src
jom
jom install
cd ..\tools
jom
jom install
- name: Test
shell: cmd
run: |
tools\releasetest\releasetest.bat

# build-windows-msvc2019-qt67:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@main
# - name: Install Qt
# uses: jurplel/install-qt-action@latest
# with:
# version: '6.7.3'
# host: 'windows'
# target: 'desktop'

# build-windows-msvc2019-qt65:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@main
# - name: Install Qt
# uses: jurplel/install-qt-action@latest
# with:
# version: '6.5.2'
# host: 'windows'
# target: 'desktop'

# choco install visualstudio2019buildtools --params "--add Microsoft.VisualStudio.Workload.VCTools"
# refreshenv

# build-windows-msvc2019-qt62:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@main
# - name: Install Qt
# uses: jurplel/install-qt-action@latest
# with:
# version: '6.2.7'
# host: 'windows'
# target: 'desktop'
15 changes: 9 additions & 6 deletions configure.bat
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ if "%DEBUG%" == "yes" (
::
:: Generates tfenv.bat
::
for %%I in (nmake.exe) do if exist %%~$path:I set MAKE=%%~$path:I
if "%MAKE%" == "" (
for %%I in (jom.exe) do if exist %%~$path:I set MAKE=%%~$path:I
)
for %%I in (qmake.exe) do if exist %%~$path:I set QMAKE=%%~$path:I
for %%I in (cmake.exe) do if exist %%~$path:I set CMAKE=%%~$path:I
for %%I in (nmake.exe) do if exist %%~$path:I set MAKE=%%~$path:I
for %%I in (cl.exe) do if exist %%~$path:I set MSCOMPILER=%%~$path:I
for %%I in (devenv.com) do if exist %%~$path:I set DEVENV=%%~$path:I

Expand Down Expand Up @@ -233,17 +236,17 @@ if ERRORLEVEL 1 (

:: Builds TreeFrog
cd %BASEDIR%src
if exist Makefile ( nmake -k distclean >nul 2>&1 )
if exist Makefile ( "%MAKE%" -k distclean >nul 2>&1 )
qmake %OPT% target.path='%TFDIR%/bin' header.path='%TFDIR%/include' %USE_GUI%

cd %BASEDIR%tools
if exist Makefile ( nmake -k distclean >nul 2>&1 )
if exist Makefile ( "%MAKE%" -k distclean >nul 2>&1 )
qmake -recursive %OPT% target.path='%TFDIR%/bin' header.path='%TFDIR%/include' datadir='%TFDIR%'
nmake qmake
"%MAKE%" qmake

echo;
echo First, run "nmake install" in src directory.
echo Next, run "nmake install" in tools directory.
echo First, run "%MAKE% install" in src directory.
echo Next, run "%MAKE% install" in tools directory.

:exit
exit /b
34 changes: 20 additions & 14 deletions tools/test/releasetest/releasetest.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ set APPNAME=blogapp
set APPDIR=%BASEDIR%%APPNAME%
set DBFILE=%APPDIR%\db\dbfile
set PORT=18800
set MAKE=nmake VERBOSE=1
set CL=/MP

cd /D %BASEDIR%
Expand All @@ -17,15 +16,23 @@ if not "%TFENV%" == "" (
call "..\..\..\tfenv.bat"
)

for %%I in (nmake.exe) do if exist %%~$path:I set NMAKE=%%~$path:I
for %%I in (nmake.exe) do if exist %%~$path:I set MAKE=%%~$path:I
if "%MAKE%" == "" (
for %%I in (jom.exe) do if exist %%~$path:I set MAKE=%%~$path:I
if not "%MAKE%" == "" (
set MAKE=jom
)
) else (
set MAKE=nmake VERBOSE=1
)
for %%I in (qmake.exe) do if exist %%~$path:I set QMAKE=%%~$path:I
for %%I in (cmake.exe) do if exist %%~$path:I set CMAKE=%%~$path:I
for %%I in (sqlite3.exe) do if exist %%~$path:I set SQLITE=%%~$path:I
if "%SQLITE%" == "" for %%I in (sqlite3-bin.exe) do if exist %%~$path:I set SQLITE=%%~$path:I

if "%NMAKE%" == "" (
if "%MAKE%" == "" (
echo;
echo nmake.exe command not found.
echo nmake.exe not found.
call :CleanUp
pause
exit /B 1
Expand Down Expand Up @@ -62,13 +69,12 @@ cd %APPDIR%
echo n | tspawn s blog
tspawn w foo

:: Set ExecutionPolicy
for %%I in (tadpoled.exe) do if exist %%~$path:I set TADPOLED=%%~$path:I
for %%I in (tadpole.exe) do if exist %%~$path:I set TADPOLE=%%~$path:I

powershell -Command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser -Force"
powershell -command "New-NetFirewallRule -DisplayName MyAppAccess1 -Direction Inbound -Action Allow -Profile Public,Private -Program '%TADPOLED%' -Protocol TCP -LocalPort %PORT% -RemoteAddress 127.0.0.1" >nul 2>&1
powershell -command "New-NetFirewallRule -DisplayName MyAppAccess2 -Direction Inbound -Action Allow -Profile Public,Private -Program '%TADPOLE%' -Protocol TCP -LocalPort %PORT% -RemoteAddress 127.0.0.1" >nul 2>&1
@REM :: Set ExecutionPolicy
@REM for %%I in (tadpoled.exe) do if exist %%~$path:I set TADPOLED=%%~$path:I
@REM for %%I in (tadpole.exe) do if exist %%~$path:I set TADPOLE=%%~$path:I
@REM powershell -Command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser -Force"
@REM powershell -command "New-NetFirewallRule -DisplayName MyAppAccess1 -Direction Inbound -Action Allow -Profile Public,Private -Program '%TADPOLED%' -Protocol TCP -LocalPort %PORT% -RemoteAddress 127.0.0.1" >nul 2>&1
@REM powershell -command "New-NetFirewallRule -DisplayName MyAppAccess2 -Direction Inbound -Action Allow -Profile Public,Private -Program '%TADPOLE%' -Protocol TCP -LocalPort %PORT% -RemoteAddress 127.0.0.1" >nul 2>&1


:: Test in debug mode
Expand All @@ -83,7 +89,7 @@ call :QMakeBuild debug
if ERRORLEVEL 1 exit /B %ERRORLEVEL%
call :CheckWebApp treefrogd
if ERRORLEVEL 1 exit /B %ERRORLEVEL%
nmake distclean >nul 2>nul
%MAKE% distclean >nul 2>nul

:: Test in release mode
if not "%CMAKE%" == "" (
Expand All @@ -97,7 +103,7 @@ call :QMakeBuild release
if ERRORLEVEL 1 exit /B %ERRORLEVEL%
call :CheckWebApp treefrog
if ERRORLEVEL 1 exit /B %ERRORLEVEL%
nmake distclean >nul 2>nul
%MAKE% distclean >nul 2>nul

echo;
echo Test OK
Expand Down Expand Up @@ -137,7 +143,7 @@ exit /B 0
cd /D %APPDIR%
del /Q /F lib\*.*
qmake -r CONFIG+=%1
nmake
%MAKE%
if ERRORLEVEL 1 (
echo;
echo Build Error!
Expand Down
Loading