-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge release candidate 1.3.0rc1 into master
- Loading branch information
Showing
16 changed files
with
992 additions
and
855 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: "Setup MSVC" | ||
description: "Setup Microsoft Visual C++ compiler" | ||
|
||
inputs: | ||
arch: | ||
description: "Hardware architecture" | ||
required: true | ||
default: "x64" | ||
version: | ||
description: "Toolset version" | ||
required: true | ||
default: "16" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- | ||
name: Set MSVC toolchain (v9) | ||
shell: pwsh | ||
run: | | ||
if (-not "${{ env.VS090URL }}") { | ||
echo "Missing environment variable VS090URL" | ||
exit 1; | ||
} | ||
Invoke-WebRequest ${{ env.VS090URL }} -OutFile VCForPython27.msi | ||
(Start-Process "msiexec" -NoNewWindow -PassThru -ArgumentList ` | ||
"/i VCForPython27.msi /qn /l*! output.log").WaitForExit() | ||
$MSVCVARS = "VCINSTALLDIR", "WindowsSdkDir", "PATH", "LIB", "LIBPATH", "INCLUDE" | ||
$MSVCROOT = "C:\Users\$env:UserName\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0" | ||
cmd.exe /c "`"${MSVCROOT}\vcvarsall.bat`" ${{ inputs.arch }} && set" | | ||
ForEach-Object { | ||
$name, $value = $_ -split '=', 2 | ||
if (${MSVCVARS} -contains $name) { | ||
echo $_ >> $env:GITHUB_ENV | ||
} | ||
} | ||
if: inputs.version == '9' | ||
- | ||
name: Set MSVC toolchain (v14+) | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: ${{ inputs.arch }} | ||
toolset: ${{ inputs.version }} | ||
if: inputs.version != '9' |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.