name: Rust on: push: branches: [ "main" ] pull_request: branches: [ "main" ] env: CARGO_TERM_COLOR: always jobs: build-rust: name: Build rust library for ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: matrix: os: [ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v5 - name: Set up Python uses: actions/setup-python@v6 with: python-version: "3.12" - name: Install Act dependencies if: ${{ env.ACT }} run: | apt-get update && apt-get install sudo -y cargo - name: Build run: cargo build --verbose - name: Run tests run: cargo test --verbose