@@ -24,7 +24,7 @@ concurrency:
2424jobs :
2525 build :
2626
27- runs-on : windows-2019
27+ runs-on : windows-2022
2828
2929 steps :
3030
3939 - name : Init conda
4040 shell : bash -l {0}
4141 run : /c/Miniconda/condabin/conda.bat init --all
42-
42+
4343 # - name: link
4444 # shell: bash -l {0}
4545 # run: cd /usr/bin && ln -s /c/Miniconda/condabin/conda.bat conda
6565 # with:
6666 # miniconda-version: 'latest'
6767
68- - name : Install SSH Key
69- uses : shimataro/ssh-key-action@v2
70- with :
71- key : ${{ secrets.SSH_PRIVATE_KEY }}
72- known_hosts : ${{ secrets.KNOWN_HOSTS }}
73-
7468 - name : Checkout code
7569 uses : actions/checkout@v3
7670 with :
@@ -79,16 +73,16 @@ jobs:
7973 - name : Get tags
8074 run : git fetch --unshallow origin +refs/tags/*:refs/tags/*
8175
76+ - name : Download test data
77+ shell : bash -l {0}
78+ run : .github/workflows/download_test_data.sh
79+
8280 - name : Get NSIS
8381 working-directory : ${{runner.workspace}}
8482 run : |
85- curl -o nsis.zip http ://www.sci.utah.edu/~amorris/NSISPortable_3.04.zip
83+ curl -o nsis.zip https ://www.sci.utah.edu/~amorris/NSISPortable_3.04.zip
8684 Expand-Archive -LiteralPath nsis.zip -DestinationPath .
8785
88- - name : Restore Caches
89- shell : bash -l {0}
90- run : .github/workflows/restore_caches.sh
91-
9286 - name : Conda Installs
9387 shell : bash -l {0}
9488 run : .github/workflows/gha_conda.sh
@@ -115,7 +109,7 @@ jobs:
115109 # Note the current convention is to use the -S and -B options here to specify source
116110 # and build directories, but this is only available with CMake 3.13 and higher.
117111 # The CMake binaries on the Github Actions machines are (as of this writing) 3.12
118- run : conda activate shapeworks && cmake $GITHUB_WORKSPACE -DCMAKE_CXX_FLAGS="-FS" -DCMAKE_C_FLAGS="-FS" -DCMAKE_CXX_FLAGS_RELEASE="-FS /Zm500 /Zi /GL /MD /O2 /Ob3 /DNDEBUG /EHsc" -DCMAKE_C_FLAGS_RELEASE="-FS /Zi /GL /MD /O2 /Ob3 /DNDEBUG /EHsc" -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="-LTCG /DEBUG" -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-LTCG /DEBUG" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DITK_DIR="C:\deps\lib\cmake\ITK-5.2 " -DVTK_DIR="C:\deps\lib\cmake\vtk-9.1 " -DXLNT_DIR="C:\deps" -DLIBIGL_DIR="C:\deps" -DJKQTCommonSharedLib_DIR="C:/deps/lib/cmake/JKQTCommonSharedLib" -DJKQTMathTextSharedLib_DIR="C:/deps/lib/cmake/JKQTMathTextSharedLib" -DJKQTPlotterSharedLib_DIR="C:/deps/lib/cmake/JKQTPlotterSharedLib" -DOpenVDB_DIR="C:\deps\lib\cmake\OpenVDB" -DGEOMETRYCENTRAL_DIR="C:\deps" -DACVD_DIR="C:\deps" -DBuild_Studio=ON -DGA_MEASUREMENT_ID=$GA_MEASUREMENT_ID -DGA_API_SECRET=$GA_API_SECRET
112+ run : conda activate shapeworks && cmake $GITHUB_WORKSPACE -DCMAKE_CXX_FLAGS="-FS" -DCMAKE_C_FLAGS="-FS" -DCMAKE_CXX_FLAGS_RELEASE="-FS /Zm500 /Zi /GL /MD /O2 /Ob3 /DNDEBUG /EHsc" -DCMAKE_C_FLAGS_RELEASE="-FS /Zi /GL /MD /O2 /Ob3 /DNDEBUG /EHsc" -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="-LTCG /DEBUG" -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-LTCG /DEBUG" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DITK_DIR="C:\deps\lib\cmake\ITK-5.4 " -DVTK_DIR="C:\deps\lib\cmake\vtk-9.5 " -DXLNT_DIR="C:\deps" -DLIBIGL_DIR="C:\deps" -DJKQTCommonSharedLib_DIR="C:/deps/lib/cmake/JKQTCommonSharedLib" -DJKQTMathTextSharedLib_DIR="C:/deps/lib/cmake/JKQTMathTextSharedLib" -DJKQTPlotterSharedLib_DIR="C:/deps/lib/cmake/JKQTPlotterSharedLib" -DOpenVDB_DIR="C:\deps\lib\cmake\OpenVDB" -DGEOMETRYCENTRAL_DIR="C:\deps" -DACVD_DIR="C:\deps" -DBuild_Studio=ON -DGA_MEASUREMENT_ID=$GA_MEASUREMENT_ID -DGA_API_SECRET=$GA_API_SECRET
119113
120114 - name : Build
121115 working-directory : " C:/build"
@@ -154,7 +148,7 @@ jobs:
154148 # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
155149 run : conda activate shapeworks && source ${GITHUB_WORKSPACE}/devenv.sh ./bin/Release && ctest --output-on-failure -VV -C $BUILD_TYPE --debug
156150
157- - uses : actions/upload-artifact@v2
151+ - uses : actions/upload-artifact@v4
158152 with :
159153 name : artifact-${{github.sha}}-windows
160154 path : ${{runner.workspace}}\ShapeWorks\artifacts
@@ -174,8 +168,3 @@ jobs:
174168 title : " Development Build for Windows"
175169 files : |
176170 d:/a/ShapeWorks/ShapeWorks/artifacts/*.exe
177-
178- - name : Copy artifact
179- shell : bash -l {0}
180- run : cd /d/a/ShapeWorks/ShapeWorks/artifacts && ${GITHUB_WORKSPACE}/.github/workflows/copy_artifact.sh artifact-${{github.sha}}-windows *
181-
0 commit comments