From 6a418fb35ca538d27ad30a726b8c086c06e2bd80 Mon Sep 17 00:00:00 2001 From: Mate Soos Date: Sat, 13 Jan 2024 13:27:59 +0100 Subject: [PATCH] Update binary-build.yml add python to build --- .github/workflows/binary-build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/binary-build.yml b/.github/workflows/binary-build.yml index 6601a9327..ab2498b65 100644 --- a/.github/workflows/binary-build.yml +++ b/.github/workflows/binary-build.yml @@ -39,6 +39,27 @@ jobs: #platform_version: 2019 # OPTIONAL: Specify a toolset #toolset: msvc + - name: Setup Python + uses: actions/setup-python@v5.0.0 + with: + # Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset. + python-version: # optional + # File containing the Python version to use. Example: .python-version + python-version-file: # optional + # Used to specify a package manager for caching in the default directory. Supported values: pip, pipenv, poetry. + cache: # optional + # The target architecture (x86, x64) of the Python or PyPy interpreter. + architecture: # optional + # Set this option if you want the action to check for the latest available version that satisfies the version spec. + check-latest: # optional + # The token used to authenticate when fetching Python distributions from https://github.com/actions/python-versions. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting. + token: # optional, default is ${{ github.server_url == 'https://github.com' && github.token || '' }} + # Used to specify the path to dependency files. Supports wildcards or a list of file names for caching multiple dependencies. + cache-dependency-path: # optional + # Set this option if you want the action to update environment variables. + update-environment: # optional, default is true + # When 'true', a version range passed to 'python-version' input will match prerelease versions if no GA versions are found. Only 'x.y' version range is supported for CPython. + allow-prereleases: # optional - name: Configure CMake # Use a bash shell so we can use the same syntax for environment variable