-
Notifications
You must be signed in to change notification settings - Fork 1
121 lines (117 loc) · 3.48 KB
/
main.yml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
on: [push, pull_request]
name: Continuous integration
jobs:
check:
name: Check and build (stable)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: build
test:
name: Test suite (stable)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
demos:
name: Demos (nightly)
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
needs: [check]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-19
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Checkout nix-rust/nix
uses: actions/checkout@v2
with:
repository: nix-rust/nix
ref: afba7c5a33dd4fd62b047e64089487cf822ccec2 # 0.23.1
path: nix
- name: Checkout bytecodealliance/rustix
uses: actions/checkout@v2
with:
repository: bytecodealliance/rustix
ref: 1ebbf6330308c644ca675f9de6fc12abd7289f9b # 0.33.0
path: rustix
- name: Checkout rust-lang/regex
uses: actions/checkout@v2
with:
repository: rust-lang/regex
ref: f2dc1b788f773a49f1b6633a6302054978344452 # 1.5.4
path: regex
- name: Checkout alexcrichton/curl-rust
uses: actions/checkout@v2
with:
repository: alexcrichton/curl-rust
ref: 3e35a00d059c96e8010e7a13d1cdf848baba6575 # 0.4.42
path: curl
- name: rustdoc.json nix
uses: actions-rs/cargo@v1
with:
command: doc
args: --manifest-path nix/Cargo.toml
env:
RUSTDOCFLAGS: -Zunstable-options --output-format=json
- name: rustdoc.json rustix
uses: actions-rs/cargo@v1
with:
command: doc
args: --manifest-path rustix/Cargo.toml
env:
RUSTDOCFLAGS: -Zunstable-options --output-format=json
- name: rustdoc.json regex
uses: actions-rs/cargo@v1
with:
command: doc
args: --manifest-path regex/Cargo.toml
env:
RUSTDOCFLAGS: -Zunstable-options --output-format=json
- name: rustdoc.json curl
uses: actions-rs/cargo@v1
with:
command: doc
args: --manifest-path curl/Cargo.toml
env:
RUSTDOCFLAGS: -Zunstable-options --output-format=json
- name: rd.html *.json
uses: actions-rs/cargo@v1
with:
command: run
args: |
--release --
--output output/
nix/target/doc/nix.json
nix/target/doc/libc.json
regex/target/doc/regex.json
regex/target/doc/memchr.json
curl/target/doc/curl.json
curl/target/doc/curl_sys.json
curl/target/doc/openssl_sys.json
rustix/target/doc/rustix.json
rustix/target/doc/io_lifetimes.json
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.2
with:
branch: gh-pages
folder: output/