Skip to content

validate python version #2

validate python version

validate python version #2

Workflow file for this run

name: Release for Windows
on: [push]
jobs:
release:
runs-on: windows-2019
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- name: Cancel previous run
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Validate version
run: |
$pythonVersion = (python --version)
if ("Python ${{ matrix.python-version }}" -ne "$pythonVersion"){
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python-version }}"
exit 1
}
$pythonVersion
shell: pwsh
- name: Build
run: |
pip install -r requirements.txt
bazel build --config=windows_x86_64 --remote_cache=http://${{ secrets.BAZEL_CACHE }}:8080 @maple2jax//:jax_xc_wheel
- name: Upload artifact
uses: actions/upload-artifact@main
with:
name: macos_wheel
path: bazel-bin/external/maple2jax/*.whl