From c4874df8cb4ef66270ef9ac58f72d5baa450e522 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Thu, 30 Mar 2023 16:04:20 -0400 Subject: [PATCH] upload setup artifact during Windows test build --- .github/workflows/test-build-prs.yaml | 29 +++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-build-prs.yaml b/.github/workflows/test-build-prs.yaml index caab9530..5f6257ae 100644 --- a/.github/workflows/test-build-prs.yaml +++ b/.github/workflows/test-build-prs.yaml @@ -58,17 +58,38 @@ jobs: with: python-version: '3.8.1' architecture: 'x64' + - uses: Jimver/cuda-toolkit@v0.2.4 + id: cuda-toolkit + with: + cuda: '11.4.0' - name: Setup cmake uses: jwlawson/actions-setup-cmake@v1.13 with: cmake-version: '3.24.x' - - name: Setup Visual C++ - uses: ilammy/msvc-dev-cmd@v1 + - name: Extract code signing cert + id: code_sign + uses: timheuer/base64-to-file@v1 with: - arch: x64 + fileName: 'comodo.pfx' + encodedString: ${{ secrets.CODE_SIGNING_CERT }} - name: Install venv run: | python -m pip install virtualenv - name: Build sources run: | - python configure.py build \ No newline at end of file + python configure.py build + - name: Free up space + run: | + rmdir SuperBuild\download /s /q + rmdir SuperBuild\build /s /q + shell: cmd + - name: Create setup + env: + CODE_SIGN_CERT_PATH: ${{ steps.code_sign.outputs.filePath }} + run: | + python configure.py dist --code-sign-cert-path $env:CODE_SIGN_CERT_PATH + - name: Upload Setup File + uses: actions/upload-artifact@v2 + with: + name: Setup + path: dist\*.exe