name: 顺手 build test 一下 on: push: branches: [ "main" ] pull_request: branches: [ "main" ] env: CARGO_TERM_COLOR: always jobs: build: strategy: fail-fast: false matrix: os: [macos-latest, ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - name: Build run: cargo build --verbose - name: 好玩的 run: cargo run name - name: Run tests run: cargo test --verbose