-
Notifications
You must be signed in to change notification settings - Fork 32
66 lines (55 loc) · 1.65 KB
/
ci.yml
File metadata and controls
66 lines (55 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Run CI
on:
push:
branches:
- "main"
- "feat/**"
paths-ignore:
- "**.md" # Do not need to run CI for markdown changes.
pull_request:
branches:
- "main"
- "feat/**"
paths-ignore:
- "**.md"
jobs:
ci-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
features:
- name: "default"
cargo-flags: ""
- name: "hyper-rustls-native-roots"
cargo-flags: "--no-default-features --features hyper-rustls-native-roots"
- name: "hyper-rustls-webpki-roots"
cargo-flags: "--no-default-features --features hyper-rustls-webpki-roots"
- name: "native-tls"
cargo-flags: "--no-default-features --features native-tls"
name: CI (${{ matrix.features.name }})
steps:
- uses: actions/checkout@v4
- name: Get Rust version
id: rust-version
run: cat ./.github/variables/rust-versions.env >> $GITHUB_OUTPUT
- name: Setup rust tooling
run: |
rustup override set ${{ steps.rust-version.outputs.target }}
rustup component add rustfmt clippy
- uses: ./.github/actions/ci
with:
cargo-flags: ${{ matrix.features.cargo-flags }}
build-docs:
runs-on: ubuntu-latest
name: Build Documentation (all features)
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup rust tooling
run: rustup override set nightly
- name: Install cargo-docs-rs
run: cargo install cargo-docs-rs
- name: Build documentation
run: cargo docs-rs -p eventsource-client