name: Rust

on:
  workflow_dispatch:

env:
  CARGO_TERM_COLOR: always

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v4
    - name: Build server
      working-directory: ./musicdb-server
      run: cargo build --release --verbose
    - name: Build client
      working-directory: ./musicdb-client
      run: cargo build --release --verbose
