ci: add Windows to build matrix and integration tests

- Add windows-latest to OS matrix with x86_64-pc-windows-msvc target
- Add dedicated Windows integration test job
- Verify Windows executable functionality
- Ensure cross-platform compatibility testing

This ensures Windows build issues are caught early in CI/CD pipeline.
This commit is contained in:
bahdotsh
2025-08-27 15:37:15 +05:30
parent aa9da33b30
commit 5e9658c885

View File

@@ -3,7 +3,7 @@ name: Build
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: [ main ] branches: [main]
pull_request: pull_request:
jobs: jobs:
@@ -12,12 +12,14 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest, windows-latest]
include: include:
- os: ubuntu-latest - os: ubuntu-latest
target: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu
- os: macos-latest - os: macos-latest
target: x86_64-apple-darwin target: x86_64-apple-darwin
- os: windows-latest
target: x86_64-pc-windows-msvc
steps: steps:
- name: Checkout code - name: Checkout code
@@ -31,27 +33,27 @@ jobs:
target: ${{ matrix.target }} target: ${{ matrix.target }}
override: true override: true
components: clippy, rustfmt components: clippy, rustfmt
- name: Check formatting - name: Check formatting
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: fmt command: fmt
args: -- --check args: -- --check
- name: Run clippy - name: Run clippy
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: clippy command: clippy
args: -- -D warnings args: -- -D warnings
- name: Build - name: Build
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: build command: build
args: --target ${{ matrix.target }} args: --target ${{ matrix.target }}
- name: Run tests - name: Run tests
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: --target ${{ matrix.target }} args: --target ${{ matrix.target }}