mirror of
https://github.com/bytedance/g3.git
synced 2026-05-18 06:04:51 +00:00
add windows CI
This commit is contained in:
parent
749c4bc781
commit
d05f2a00a1
1 changed files with 43 additions and 0 deletions
43
.github/workflows/windows.yml
vendored
Normal file
43
.github/workflows/windows.yml
vendored
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue