name: build Windows

on:
  workflow_dispatch:
  push:
    branches:
      - main
      - release/*
  pull_request:

jobs:
  build:
    runs-on: windows-latest
    steps:
      - name: Checkout sources
        uses: actions/checkout@v6

      - name: Install Rust
        uses: dtolnay/rust-toolchain@stable
        with:
          targets: x86_64-pc-windows-msvc

      - name: Build release
        run: cargo build --release --target=x86_64-pc-windows-msvc
