fix(windows): vendor MSVC runtime so wheels load in Blender 4.2/4.5/5.0 (#299) #529
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: Conda Build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| conda-build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| - macos-latest | |
| python-version: | |
| - "3.10" | |
| - "3.14" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set stdlib variant | |
| id: stdlib | |
| shell: bash | |
| run: | | |
| if [[ "$RUNNER_OS" == "Linux" ]]; then | |
| echo 'args=--variant "c_stdlib=sysroot" --variant "c_stdlib_version=2.17"' >> "$GITHUB_OUTPUT" | |
| elif [[ "$RUNNER_OS" == "macOS" ]]; then | |
| echo 'args=--variant "c_stdlib=macosx_deployment_target" --variant "c_stdlib_version=11.0"' >> "$GITHUB_OUTPUT" | |
| elif [[ "$RUNNER_OS" == "Windows" ]]; then | |
| echo 'args=--variant "c_stdlib=vs" --variant "c_compiler=vs2022" --variant "cxx_compiler=vs2022"' >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Build conda package | |
| uses: prefix-dev/rattler-build-action@v0.2.36 | |
| with: | |
| recipe-path: conda/recipe.yaml | |
| artifact-name: conda-package-${{ matrix.os }}-py${{ matrix.python-version }} | |
| build-args: >- | |
| --variant "python=${{ matrix.python-version }}" | |
| ${{ steps.stdlib.outputs.args }} |