Add Windows build job to release workflow

This commit is contained in:
Hakan Seven 2026-03-22 18:35:45 +03:00
commit 803f5a005c

View file

@ -53,3 +53,25 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.ref_name }} H7CAD.flatpak --clobber --repo ${{ github.repository }}
build-windows:
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --release
- name: Upload exe to release
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.ref_name }} target/release/H7CAD.exe --clobber --repo ${{ github.repository }}