Skip to content

Commit

Permalink
add windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq-b committed May 16, 2024
1 parent 749c4bc commit 507d30f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -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: --no-default-features --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 %WIN_FEATURES%
- name: Cargo clippy
run: cargo clippy %WIN_FEATURES% --tests -- --deny warnings
- name: Cargo test
run: cargo test %WIN_FEATURES%

0 comments on commit 507d30f

Please sign in to comment.