Skip to content

110 win builds fixes #113

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 66 commits into from
Sep 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
10c6487
Add arch for MSVC compiler setup
AlexNDRmac Aug 29, 2021
00bde87
Add codegen arch for configure
AlexNDRmac Aug 29, 2021
1256e3d
Fix codegen arch configure options
AlexNDRmac Aug 29, 2021
f39922c
Set shared for module, write compiler errors to file
AlexNDRmac Aug 29, 2021
3e39073
Set toolset for CL, enable fail artifacts
AlexNDRmac Aug 29, 2021
df34a29
Use bat file for Lemon phase
AlexNDRmac Sep 4, 2021
a551f76
Store parser for debug
AlexNDRmac Sep 4, 2021
1d2d4d2
Fix echo comand for parser first string
AlexNDRmac Sep 4, 2021
906a151
Fix batch 1
AlexNDRmac Sep 4, 2021
ca2bbb6
Fix batch 2
AlexNDRmac Sep 4, 2021
5f4f0eb
Fix batch 3
AlexNDRmac Sep 4, 2021
ecd7369
Rewrite batch to powershell
AlexNDRmac Sep 4, 2021
71c0a80
Fix file overwriting
AlexNDRmac Sep 4, 2021
b62510e
Remove raw lemon cmd from workflow
AlexNDRmac Sep 4, 2021
f2ee03d
Fix release path and artifact name
AlexNDRmac Sep 5, 2021
c326154
Fix workflow steps
AlexNDRmac Sep 5, 2021
bd49834
Fix path to release folder
AlexNDRmac Sep 5, 2021
d72b009
Add release folder to ENV, initialize ENV vars before use it
AlexNDRmac Sep 5, 2021
792cd50
Fix enable php extension step
AlexNDRmac Sep 5, 2021
79dedd6
Split copy ext and enable step
AlexNDRmac Sep 5, 2021
c664e0b
Fix dll path variable
AlexNDRmac Sep 5, 2021
fbbe01e
Fix path for enable php ext
AlexNDRmac Sep 5, 2021
2e48dfa
Check if extension exists
AlexNDRmac Sep 5, 2021
2c86a81
Add release folders to debug
AlexNDRmac Sep 5, 2021
cb567f0
Remove php ext dir from debug
AlexNDRmac Sep 5, 2021
027f072
Disable some builds to speedup debug
AlexNDRmac Sep 5, 2021
08a5efb
Add debug for extension
AlexNDRmac Sep 5, 2021
5958b8a
Move extension test to psm1
AlexNDRmac Sep 5, 2021
14c6896
Fix extension enabler script
AlexNDRmac Sep 5, 2021
a54de01
Run tests
AlexNDRmac Sep 5, 2021
4b132f0
Remove not necessary steps
AlexNDRmac Sep 5, 2021
923c31d
Init release vars in the beginnings
AlexNDRmac Sep 5, 2021
2842456
Change copy cmd for powershell
AlexNDRmac Sep 5, 2021
6922376
Enable extension info step
AlexNDRmac Sep 5, 2021
911502c
Use handle instead of ext name
AlexNDRmac Sep 5, 2021
81d0342
Try to use ext version for enabler
AlexNDRmac Sep 5, 2021
08337e7
Try to dynamically load extension
AlexNDRmac Sep 5, 2021
90fc424
Enable ext manually
AlexNDRmac Sep 5, 2021
696a97c
Copy ext dll manually
AlexNDRmac Sep 5, 2021
c7be3c4
Use cache for download artifacts
AlexNDRmac Sep 6, 2021
25328da
Improve readability
AlexNDRmac Sep 6, 2021
25c42a3
Try to disable setup php action
AlexNDRmac Sep 6, 2021
2ff6562
Refactor PHP SDK init steps
AlexNDRmac Sep 6, 2021
c54d174
Disable tests for x86 arch
AlexNDRmac Sep 6, 2021
17694d1
Change parser cmd
AlexNDRmac Sep 6, 2021
5f57d3d
Change steps
AlexNDRmac Sep 6, 2021
28ad4a7
Revert command for Lemon
AlexNDRmac Sep 6, 2021
894dae6
Debug psm1
AlexNDRmac Sep 6, 2021
18a6234
Debug psm1
AlexNDRmac Sep 6, 2021
6a15c54
Debug psm1
AlexNDRmac Sep 6, 2021
fe1a416
Store parser release assets
AlexNDRmac Sep 6, 2021
02ae524
Fix Env vars for workflow
AlexNDRmac Sep 6, 2021
344cda3
Fix zip file name
AlexNDRmac Sep 6, 2021
ac19695
Disable progress for Choco, fix commit hash
AlexNDRmac Sep 6, 2021
114ab92
Enamble full matrix builds
AlexNDRmac Sep 6, 2021
cfe8959
Setup latest MSVC compiler version
AlexNDRmac Sep 6, 2021
84c51f0
Remove minor ver from toolset
AlexNDRmac Sep 6, 2021
b61afc7
Add tests to debug artifacts
AlexNDRmac Sep 7, 2021
7cee49b
Split configure and make
AlexNDRmac Sep 7, 2021
28782e8
Use win2019 for vc15
AlexNDRmac Sep 7, 2021
cef541f
Try alternative way for vsdev cmd
AlexNDRmac Sep 7, 2021
00a6c39
Try to not set toolset via action
AlexNDRmac Sep 7, 2021
8e92755
Try combine for include for matrix :)
AlexNDRmac Sep 7, 2021
3a0fb13
Anothr try to combine includes
AlexNDRmac Sep 7, 2021
1615100
Skip Win specific tests
AlexNDRmac Sep 7, 2021
7386e16
Use lowercase for artifact name
AlexNDRmac Sep 7, 2021
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
19 changes: 0 additions & 19 deletions .ci/build-win32.bat

This file was deleted.

45 changes: 45 additions & 0 deletions .ci/lemon-parser.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This file is part of the Zephir Parser.
#
# (c) Zephir Team <team@zephir-lang.com>
#
# For the full copyright and license information, please view
# the LICENSE file that was distributed with this source code.

Write-Output "-- Compiling Lemon parser..."
$LemonSrc = Join-Path -Path './parser' -ChildPath 'lemon.c'
$LemonBin = Join-Path -Path './parser' -ChildPath 'lemon.exe'

if ($IsWindows) {
& cl /Fe${LemonExe} ${LemonSrc}
}
else {
$LemonBin = Join-Path -Path './parser' -ChildPath 'lemon'
& gcc ${LemonSrc} -o ${LemonBin}
}
& ${LemonBin} -x

Write-Output "-- Cleanup initial file state..."

$AutoFiles = "./parser/zephir.c",
"./parser/zephir.h",
"./parser/parser.c",
"./parser/scanner.c"

foreach ($GeneratedFile in $AutoFiles) {
if (Test-Path -Path $GeneratedFile) {
Remove-Item $GeneratedFile
}
}

Write-Output "-- Run re2c..."
& re2c -o (Join-Path -Path './parser' -ChildPath 'scanner.c') (Join-Path -Path './parser' -ChildPath 'scanner.re')

Write-Output "-- Generating zephir.c file with lemon parser..."
& ${LemonBin} -s (Join-Path -Path './parser' -ChildPath 'zephir.lemon')

Write-Output "-- Generating parser.c file..."
$ParserC = Join-Path -Path './parser' -ChildPath 'parser.c'
$ZephirC = Join-Path -Path './parser' -ChildPath 'zephir.c'
$BaseC = Join-Path -Path './parser' -ChildPath 'base.c'
Set-Content -Path ${ParserC} -Value '#include <php.h>'
Get-Content ${ZephirC}, ${BaseC} | Add-Content ${ParserC}
Loading