Merge pull request #7 from WebODM/odx #10
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: | |
| paths-ignore: | |
| - 'README.md' | |
| branches: | |
| - master | |
| tags: | |
| - v* | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: windows-2022 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.12.9' | |
| architecture: 'x64' | |
| - uses: Jimver/cuda-toolkit@v0.2.35 | |
| id: cuda-toolkit | |
| with: | |
| cuda: '12.8.1' | |
| - name: Setup cmake | |
| uses: jwlawson/actions-setup-cmake@v1.13 | |
| with: | |
| cmake-version: '3.28.x' | |
| - name: Install venv | |
| run: | | |
| python -m pip install virtualenv | |
| - name: Build sources | |
| run: | | |
| python configure.py build --postpip "${{ secrets.POSTPIP }}" | |
| - name: Free up space | |
| run: | | |
| rmdir SuperBuild\download /s /q | |
| rmdir SuperBuild\build /s /q | |
| shell: cmd | |
| - name: Create setup | |
| run: | | |
| python configure.py dist | |
| 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 | |