-
Notifications
You must be signed in to change notification settings - Fork 21
48 lines (43 loc) · 1.7 KB
/
build.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
name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: vsts-api-patcher fmt
run: cd vsts-api-patcher && cargo fmt --check
- name: azure_devops_rust_api fmt
run: cd azure_devops_rust_api && cargo fmt --check
- name: codegen clippy
run: cd autorust && cargo clippy
- name: vsts-api-patcher clippy
run: cd vsts-api-patcher && cargo clippy
- name: codegen build and run autogeneration
run: ./build.sh
- name: check autogeneration matches git repo
run: git diff --exit-code HEAD
- name: cleanup code generator build artifacts
run: rm -rf vsts-api-patcher/target && rm -rf autorust/target
- name: azure_devops_rust_api clippy
run: cd azure_devops_rust_api && cargo clippy --all-features -- --deny warnings
- name: examples clippy
run: cd azure_devops_rust_api && cargo clippy --all-features --examples -- --deny warnings
- name: azure_devops_rust_api build
run: cd azure_devops_rust_api && cargo build --all-features
- name: cleanup azure_devops_rust_api build artifacts
run: rm -rf azure_devops_rust_api/target
- name: install wasm target
run: rustup target add wasm32-unknown-unknown
- name: azure_devops_rust_api check wasm build
run: cd azure_devops_rust_api && cargo check --target wasm32-unknown-unknown --all-features
- name: azure_devops_rust_api test
run: cd azure_devops_rust_api && cargo test
- name: azure_devops_rust_api documentation generation
run: cd azure_devops_rust_api && cargo doc --all-features --no-deps