name: Rust

on:
  push:
    branches: 
      - "main"
      - "dev"
      - "net_reader"
  pull_request:
    branches:
      - "main"
      - "dev"
      - "net_reader"

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest]

    steps:
      - uses: actions/checkout@v4
      - name: Build
        run: cargo build --release --verbose
