mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 06:47:57 +00:00
vs2022
This commit is contained in:
@@ -21,7 +21,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: IfcOpenShell/build-outputs
|
repository: IfcOpenShell/build-outputs
|
||||||
path: _deps-vs2019-x64-installed
|
path: _deps-vs2022-x64-installed
|
||||||
ref: windows-${{ matrix.arch }}
|
ref: windows-${{ matrix.arch }}
|
||||||
lfs: true
|
lfs: true
|
||||||
token: ${{ secrets.BUILD_REPO_TOKEN }}
|
token: ${{ secrets.BUILD_REPO_TOKEN }}
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Unpack Dependencies
|
- name: Unpack Dependencies
|
||||||
run: |
|
run: |
|
||||||
cd _deps-vs2019-x64-installed
|
cd _deps-vs2022-x64-installed
|
||||||
Get-ChildItem -Path . -Filter 'cache-*.zip' | ForEach-Object {
|
Get-ChildItem -Path . -Filter 'cache-*.zip' | ForEach-Object {
|
||||||
7z x $_.FullName
|
7z x $_.FullName
|
||||||
}
|
}
|
||||||
@@ -56,14 +56,14 @@ jobs:
|
|||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
SET IFCOS_INSTALL_PYTHON=FALSE
|
SET IFCOS_INSTALL_PYTHON=FALSE
|
||||||
cd win
|
cd win
|
||||||
echo y | call build-deps.cmd vs2019-x64 Release
|
echo y | call build-deps.cmd vs2022-x64 Release
|
||||||
SET PYTHONHOME=C:\Python\${{ matrix.python }}
|
SET PYTHONHOME=C:\Python\${{ matrix.python }}
|
||||||
call run-cmake.bat vs2019-x64 -DENABLE_BUILD_OPTIMIZATIONS=On -DGLTF_SUPPORT=ON -DADD_COMMIT_SHA=ON -DVERSION_OVERRIDE=ON
|
call run-cmake.bat vs2022-x64 -DENABLE_BUILD_OPTIMIZATIONS=On -DGLTF_SUPPORT=ON -DADD_COMMIT_SHA=ON -DVERSION_OVERRIDE=ON
|
||||||
call install-ifcopenshell.bat vs2019-x64 Release
|
call install-ifcopenshell.bat vs2022-x64 Release
|
||||||
|
|
||||||
- name: Pack Dependencies
|
- name: Pack Dependencies
|
||||||
run: |
|
run: |
|
||||||
cd _deps-vs2019-x64-installed
|
cd _deps-vs2022-x64-installed
|
||||||
Get-ChildItem -Path . -Directory | ForEach-Object {
|
Get-ChildItem -Path . -Directory | ForEach-Object {
|
||||||
$cacheFile = "cache-$($_.Name).zip"
|
$cacheFile = "cache-$($_.Name).zip"
|
||||||
echo $cacheFile
|
echo $cacheFile
|
||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Commit and Push Changes to Build Repository
|
- name: Commit and Push Changes to Build Repository
|
||||||
run: |
|
run: |
|
||||||
cd _deps-vs2019-x64-installed
|
cd _deps-vs2022-x64-installed
|
||||||
git config user.name "IfcOpenBot"
|
git config user.name "IfcOpenBot"
|
||||||
git config user.email "ifcopenbot@ifcopenshell.org"
|
git config user.email "ifcopenbot@ifcopenshell.org"
|
||||||
git add *.zip
|
git add *.zip
|
||||||
@@ -90,7 +90,7 @@ jobs:
|
|||||||
|
|
||||||
if ("${{ matrix.python }}" -eq "3.9.11") {
|
if ("${{ matrix.python }}" -eq "3.9.11") {
|
||||||
# only for the first python version the executables are assembled for upload
|
# only for the first python version the executables are assembled for upload
|
||||||
cd _installed-vs2019-x64/bin
|
cd _installed-vs2022-x64/bin
|
||||||
Get-ChildItem -Path . | ForEach-Object {
|
Get-ChildItem -Path . | ForEach-Object {
|
||||||
echo $_
|
echo $_
|
||||||
$exe = $_.Name
|
$exe = $_.Name
|
||||||
|
|||||||
Reference in New Issue
Block a user