[rqd] Add windows support #739
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: OpenCue Rust Build Pipeline | |
| on: | |
| push: | |
| branches: ["master"] | |
| pull_request: | |
| branches: ["master"] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install X11 dev libs | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y libx11-dev protobuf-compiler libcurl4-openssl-dev | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rust-install.sh | |
| bash ./rust-install.sh -y | |
| - name: Build | |
| run: | | |
| cd rust | |
| cargo build --release --verbose | |
| - name: Run tests | |
| run: | | |
| cd rust | |
| cargo test --verbose | |
| clippy: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install X11 dev libs | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y libx11-dev protobuf-compiler libcurl4-openssl-dev | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rust-install.sh | |
| bash ./rust-install.sh -y | |
| - name: Run Clippy | |
| run: | | |
| cd rust | |
| cargo clippy --verbose | |
| windows-tests: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install Protobuf | |
| run: choco install protoc -y | |
| - name: Export PROTOC path | |
| run: echo "PROTOC=C:\ProgramData\chocolatey\bin\protoc.exe" >> $env:GITHUB_ENV | |
| - name: Run tests | |
| working-directory: rust | |
| run: cargo test -p rqd --verbose |