chore: update pybind11 #45
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: MSBuild | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| env: | |
| SOLUTION_FILE_PATH: . | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| id: cp310 | |
| with: | |
| python-version: '3.10' | |
| - name: Add MSBuild to PATH | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Install vcpkg | |
| run: | | |
| git clone https://github.com/microsoft/vcpkg.git | |
| cd vcpkg | |
| ./bootstrap-vcpkg.bat | |
| ./vcpkg integrate install | |
| - name: Set vcpkg environment variables | |
| run: | | |
| echo "VCPKG_ROOT=${{ env.GITHUB_WORKSPACE }}\vcpkg" >> $GITHUB_ENV | |
| echo "PATH=${{ env.GITHUB_WORKSPACE }}\vcpkg;%PATH%" >> $GITHUB_ENV | |
| - name: Restore NuGet packages | |
| working-directory: ${{env.GITHUB_WORKSPACE}} | |
| run: nuget restore ${{env.SOLUTION_FILE_PATH}} | |
| - name: Build | |
| working-directory: ${{env.GITHUB_WORKSPACE}} | |
| run: Tools/build.bat | |
| - name: Upload Release Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Release | |
| path: ${{env.SOLUTION_FILE_PATH}}/x64/Release | |
| if-no-files-found: warn |