diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 000000000..3d1d86b9a --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,43 @@ +name: Windows-CI + +on: + push: + paths-ignore: + - 'ansible/**' + - 'doc/**' + - 'demo/**' + - 'scripts/**' + - 'g3proxy/doc/**' + - 'g3tiles/doc/**' + branches: + - 'master' + - 'rel/**' + pull_request: + branches: + - 'master' + - 'rel/**' + +env: + CARGO_TERM_COLOR: always + WIN_FEATURES: vendored-openssl,quic,vendored-c-ares,hickory + +jobs: + build: + name: Build + runs-on: windows-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + with: + submodules: true + - name: Install stable toolchain + uses: dtolnay/rust-toolchain@stable + - name: Install dependencies + run: | + choco install capnproto + - name: Cargo build + run: cargo build --no-default-features --features $env:WIN_FEATURES + - name: Cargo clippy + run: cargo clippy --no-default-features --features $env:WIN_FEATURES --tests -- --deny warnings + - name: Cargo test + run: cargo test --no-default-features --features $env:WIN_FEATURES