name: "Windows Standalone Build"

on:
  push:
    tags: "v[0-9]+.[0-9]+.[0-9]+"

jobs:

  build:

    name: "Build Windows standalone version"
    runs-on: windows-latest

    steps:

      - name: "Checkout the repository"
        uses: actions/checkout@v2
        with:
          submodules: true

      - name: "Set up Python"
        uses: actions/setup-python@v2
        with:
          python-version: "3.10"

      - name: "Get some useful debug information"
        run: |
          python -VV
          python -c "from distutils import ccompiler; print(ccompiler.get_default_compiler())"

      - name: "Build YOGA Windows Standelone Version"
        run: |
          winbuild\builddist.bat

      - name: Archive Windows Build
        uses: actions/upload-artifact@v2
        with:
          name: yoga-vX.X.X_win_standalone_x86-64
          path: yogawin.dist
