variables:
  toolchain: nightly-2024-08-05

jobs:

- job: win_python313_amd64
  pool:
    vmImage: windows-2022
  variables:
    interpreter: C:\hostedtoolcache\windows\Python\3.13.0-rc.1\x64\python.exe
    rustup: https://win.rustup.rs/x86_64
    target: x86_64-pc-windows-msvc
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.13.0-rc.1'
      addToPath: true
      architecture: 'x64'
      allowUnstable: true
  - checkout: self
  - template: ./azure-win.yml

- job: win_python312_amd64
  pool:
    vmImage: windows-2022
  variables:
    interpreter: C:\hostedtoolcache\windows\Python\3.12.2\x64\python.exe
    rustup: https://win.rustup.rs/x86_64
    target: x86_64-pc-windows-msvc
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.12.2'
      addToPath: true
      architecture: 'x64'
  - checkout: self
  - template: ./azure-win.yml

- job: win_python311_amd64
  pool:
    vmImage: windows-2022
  variables:
    interpreter: C:\hostedtoolcache\windows\Python\3.11.4\x64\python.exe
    rustup: https://win.rustup.rs/x86_64
    target: x86_64-pc-windows-msvc
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.11.4'
      addToPath: true
      architecture: 'x64'
  - checkout: self
  - template: ./azure-win.yml

- job: win_python310_amd64
  pool:
    vmImage: windows-2022
  variables:
    interpreter: C:\hostedtoolcache\windows\Python\3.10.8\x64\python.exe
    rustup: https://win.rustup.rs/x86_64
    target: x86_64-pc-windows-msvc
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.10.8'
      addToPath: true
      architecture: 'x64'
  - checkout: self
  - template: ./azure-win.yml

- job: win_python39_amd64
  pool:
    vmImage: windows-2022
  variables:
    interpreter: C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe
    rustup: https://win.rustup.rs/x86_64
    target: x86_64-pc-windows-msvc
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.9.13'
      addToPath: true
      architecture: 'x64'
  - checkout: self
  - template: ./azure-win.yml

- job: win_python38_amd64
  pool:
    vmImage: windows-2022
  variables:
    interpreter: C:\hostedtoolcache\windows\Python\3.8.10\x64\python.exe
    rustup: https://win.rustup.rs/x86_64
    target: x86_64-pc-windows-msvc
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.8.10'
      addToPath: true
      architecture: 'x64'
  - checkout: self
  - template: ./azure-win.yml

- job: win_python313_x86
  pool:
    vmImage: windows-2022
  variables:
    interpreter: C:\hostedtoolcache\windows\Python\3.13.0-rc.1\x86\python.exe
    rustup: https://win.rustup.rs/x86
    target: i686-pc-windows-msvc
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.13.0-rc.1'
      addToPath: true
      architecture: 'x86'
      allowUnstable: true
  - checkout: self
  - template: ./azure-win.yml

- job: win_python312_x86
  pool:
    vmImage: windows-2022
  variables:
    interpreter: C:\hostedtoolcache\windows\Python\3.12.2\x86\python.exe
    rustup: https://win.rustup.rs/x86
    target: i686-pc-windows-msvc
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.12.2'
      addToPath: true
      architecture: 'x86'
  - checkout: self
  - template: ./azure-win.yml

- job: win_python311_x86
  pool:
    vmImage: windows-2022
  variables:
    interpreter: C:\hostedtoolcache\windows\Python\3.11.4\x86\python.exe
    rustup: https://win.rustup.rs/x86
    target: i686-pc-windows-msvc
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.11.4'
      addToPath: true
      architecture: 'x86'
  - checkout: self
  - template: ./azure-win.yml

- job: win_python310_x86
  pool:
    vmImage: windows-2022
  variables:
    interpreter: C:\hostedtoolcache\windows\Python\3.10.8\x86\python.exe
    rustup: https://win.rustup.rs/x86
    target: i686-pc-windows-msvc
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.10.8'
      addToPath: true
      architecture: 'x86'
  - checkout: self
  - template: ./azure-win.yml

- job: win_python39_x86
  pool:
    vmImage: windows-2022
  variables:
    interpreter: C:\hostedtoolcache\windows\Python\3.9.13\x86\python.exe
    rustup: https://win.rustup.rs/x86
    target: i686-pc-windows-msvc
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.9.13'
      addToPath: true
      architecture: 'x86'
  - checkout: self
  - template: ./azure-win.yml

- job: win_python38_x86
  pool:
    vmImage: windows-2022
  variables:
    interpreter: C:\hostedtoolcache\windows\Python\3.8.10\x86\python.exe
    rustup: https://win.rustup.rs/x86
    target: i686-pc-windows-msvc
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.8.10'
      addToPath: true
      architecture: 'x86'
  - checkout: self
  - template: ./azure-win.yml
