diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 106e4267..f7b5ad4c 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -99,6 +99,9 @@ jobs: uses: crazy-max/ghaction-chocolatey@v3 with: args: install openssl --version=1.1.1.2100 + - if: runner.os == 'Windows' + run: | + xcopy "C:\Program Files\OpenSSL" "C:\Qt\Tools" /E /I /H /K /Y # @@ -108,24 +111,22 @@ jobs: name: Build MMapper for Windows (MSVC) shell: cmd run: | - pwd - mkdir -p ${{ github.workspace }}/artifact + mkdir -p ${{ github.workspace }}\artifact mkdir build cd build cmake --version - cmake -DCMAKE_BUILD_TYPE=Debug -G "NMake Makefiles" -DCPACK_PACKAGE_DIRECTORY=${{ github.workspace }}/artifact -DUSE_UNITY_BUILD=false -DCMAKE_PREFIX_PATH="C:\Qt\5.12.2\msvc2019_64" -DOPENSSL_ROOT_DIR="C:\Progra~1\OpenSSL\" -S .. || exit -1 + cmake -DCMAKE_BUILD_TYPE=Debug -G "NMake Makefiles" -DCPACK_PACKAGE_DIRECTORY=${{ github.workspace }}\artifact -DUSE_UNITY_BUILD=false -DCMAKE_PREFIX_PATH="C:\Qt\5.12.2\msvc2019_64" -DOPENSSL_ROOT_DIR="C:\Qt\Tools\OpenSSL\" -S .. || exit -1 cmake --build . -j %NUMBER_OF_PROCESSORS% - if: runner.os == 'Windows' && matrix.compiler == 'gcc' name: Build MMapper for Windows (MinGW) shell: cmd run: | - pwd - mkdir -p ${{ github.workspace }}/artifact + mkdir -p ${{ github.workspace }}\artifact mkdir build cd build cmake --version set PATH=C:\Qt\Tools\mingw1310_64\bin;%PATH% - cmake -DCMAKE_BUILD_TYPE=Debug -G "MinGW Makefiles" -DCPACK_PACKAGE_DIRECTORY=${{ github.workspace }}/artifact -DUSE_UNITY_BUILD=false -DCMAKE_PREFIX_PATH="C:\Qt\5.12.2\mingw81_64" -DOPENSSL_ROOT_DIR="C:\Progra~1\OpenSSL\" -S .. || exit -1 + cmake -DCMAKE_BUILD_TYPE=Debug -G "MinGW Makefiles" -DCPACK_PACKAGE_DIRECTORY=${{ github.workspace }}\artifact -DUSE_UNITY_BUILD=false -DCMAKE_PREFIX_PATH="C:\Qt\5.12.2\mingw81_64" -DOPENSSL_ROOT_DIR="C:\Qt\Tools\OpenSSL\" -S .. || exit -1 cmake --build . -j %NUMBER_OF_PROCESSORS% - if: runner.os == 'Linux' || runner.os == 'macOS' name: Build MMapper for Linux and Mac