Update logo in readme #438
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Windows Setup | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - v* | |
| permissions: | |
| contents: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: windows-2022 | |
| environment: azuresigning | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.12.10' | |
| architecture: 'x64' | |
| - uses: Jimver/cuda-toolkit@v0.2.24 | |
| id: cuda-toolkit | |
| with: | |
| cuda: '12.8.1' | |
| - name: Setup cmake | |
| uses: jwlawson/actions-setup-cmake@v1.13 | |
| with: | |
| cmake-version: '3.24.x' | |
| - name: Install venv | |
| run: | | |
| python -m pip install virtualenv | |
| - name: Build sources | |
| run: | | |
| python configure.py build | |
| - name: Free up space | |
| run: | | |
| rmdir SuperBuild\download /s /q | |
| rmdir SuperBuild\build /s /q | |
| shell: cmd | |
| - name: Retrieve the metadata and decode it to a file | |
| env: | |
| AZURESIGNING_METADATA: ${{ secrets.AZURESIGNING_METADATA }} | |
| run: | | |
| echo $AZURESIGNING_METADATA | base64 --decode > "$RUNNER_TEMP\metadata.json" | |
| shell: bash | |
| - name: Azure login | |
| uses: azure/login@v1 | |
| with: | |
| client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| - name: Create setup | |
| run: | | |
| python configure.py dist --signtool-path "C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\signtool.exe" --azure-signing-metadata "%RUNNER_TEMP%\metadata.json" | |
| shell: cmd | |
| - name: Upload Setup File | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Setup | |
| path: dist\*.exe | |
| - name: Upload Setup to Release | |
| uses: svenstaro/upload-release-action@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: dist/*.exe | |
| file_glob: true | |
| tag: ${{ github.ref }} | |
| overwrite: true | |