on: [push] name: CI jobs: build_and_test: name: Rust project runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: toolchain: stable - uses: actions-rs/cargo@v1 container: image: actions-rs/cargov1 options: --add-host server1:192.168.2.101 \ --add-host server2:192.168.2.102 with: command: build args: --release --all-features