diff --git a/.github/workflows/swift-toolchain.yml b/.github/workflows/swift-toolchain.yml index 884cc4ba..010c3b72 100644 --- a/.github/workflows/swift-toolchain.yml +++ b/.github/workflows/swift-toolchain.yml @@ -826,9 +826,9 @@ jobs: # This will grab the latest Python 3.9 version available for setup-python. It is necessary to # specify in this manner for Mac where actions/setup-python does not have version 3.9.10. # Once the Python version is upgraded to 3.12, these should be kept in sync. - PYTHON_VERSION: 3.9 + PYTHON_VERSION_MACOS: 3.9 # Must be a full version string from https://www.nuget.org/packages/pythonarm64 - PYTHON_VERSION_ARM64: 3.9.10 + PYTHON_VERSION_WINDOWS: 3.9.10 strategy: fail-fast: false @@ -885,38 +885,38 @@ jobs: path: ${{ github.workspace }}/SourceCache/swift-corelibs-libdispatch show-progress: false - - name: Install Python ${{ env.PYTHON_VERSION }} (Host) + - name: Install Python ${{ env.PYTHON_VERSION_MACOS }} (Host) if: matrix.os == 'Darwin' uses: actions/setup-python@v5 with: - python-version: '${{ env.PYTHON_VERSION }}' + python-version: '${{ env.PYTHON_VERSION_MACOS }}' - - name: Install Python ${{ env.PYTHON_VERSION }} (Host) + - name: Install Python ${{ env.PYTHON_VERSION_WINDOWS }} (Host) if: matrix.os == 'Windows' && (matrix.arch == 'amd64' || inputs.build_arch == 'amd64') uses: actions/setup-python@v5 id: python with: - python-version: '${{ env.PYTHON_VERSION }}' + python-version: '${{ env.PYTHON_VERSION_WINDOWS }}' architecture: x64 - uses: nuget/setup-nuget@v2 if: inputs.build_os == 'Windows' && (matrix.arch == 'arm64' || inputs.build_arch == 'arm64') # TODO(lxbndr) use actions/cache to improve this step timings - - name: Install Python ${{ env.PYTHON_VERSION_ARM64 }} (Windows arm64) + - name: Install Python ${{ env.PYTHON_VERSION_WINDOWS }} (Windows arm64) if: inputs.build_os == 'Windows' && (matrix.arch == 'arm64' || inputs.build_arch == 'arm64') run: | $NugetSources=[string](nuget Sources List -Format short) if (-Not ($NugetSources.contains("api.nuget.org"))) { nuget sources Add -Name api.nuget.org -Source https://api.nuget.org/v3/index.json -NonInteractive } - nuget install pythonarm64 -Version ${{ env.PYTHON_VERSION_ARM64 }} + nuget install pythonarm64 -Version ${{ env.PYTHON_VERSION_WINDOWS }} - name: Export Python Location (Windows) if: inputs.build_os == 'Windows' run: | echo "PYTHON_LOCATION_amd64=$env:pythonLocation" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - echo "PYTHON_LOCATION_arm64=${{ github.workspace }}\pythonarm64.${{ env.PYTHON_VERSION_ARM64 }}\tools" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + echo "PYTHON_LOCATION_arm64=${{ github.workspace }}\pythonarm64.${{ env.PYTHON_VERSION_WINDOWS }}\tools" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557 # main with: diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..a0df2910 --- /dev/null +++ b/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2018, Saleem Abdulrasool and contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file