1+ name : Build IDL Parser
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+ pull_request :
7+ branches : [ "master" ]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ license-checks :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+ - uses : EmbarkStudios/cargo-deny-action@v2
18+ with :
19+ arguments : --exclude-unpublished --exclude-dev
20+
21+ typo-check :
22+ name : Spell Check with Typos
23+ runs-on : ubuntu-latest
24+ steps :
25+ - name : Checkout Actions Repository
26+ uses : actions/checkout@v4
27+
28+ - name : Writes changes in the local checkout
29+ uses : crate-ci/typos@master
30+ with :
31+ write_changes : false
32+
33+
34+ run-formatter :
35+ runs-on : ubuntu-latest
36+ steps :
37+ - uses : actions/checkout@v4
38+ - name : Run formatter
39+ run : cargo fmt --all -- --config format_code_in_doc_comments=true --check
40+
41+ run-clippy :
42+ runs-on : ubuntu-latest
43+ steps :
44+ - uses : actions/checkout@v4
45+ - name : Run cargo clippy and error on warnings for partial-idl-parser
46+ run : cargo clippy -p partial-idl-parser -- -D warnings
47+
48+ build :
49+ name : Build
50+ strategy :
51+ matrix :
52+ include :
53+ - target : aarch64-pc-windows-msvc
54+ os : windows-2022
55+ - target : x86_64-pc-windows-msvc
56+ os : windows-2022
57+ - target : x86_64-unknown-linux-gnu
58+ os : ubuntu-22.04
59+ - target : aarch64-unknown-linux-gnu
60+ os : ubuntu-22.04
61+ - target : x86_64-apple-darwin
62+ os : macos-13
63+ - target : x86_64-apple-darwin
64+ os : macos-latest
65+ - target : aarch64-apple-darwin
66+ os : macos-latest
67+ runs-on : ${{ matrix.os }}
68+ steps :
69+ - name : Checkout repository
70+ uses : actions/checkout@v4
71+ - name : Install cargo-semver-checks
72+ uses : taiki-e/install-action@v2
73+ with :
74+ tool : cargo-semver-checks@0.34
75+ - uses : Swatinem/rust-cache@v2
76+ - name : Install Rust toolchain
77+ uses : dtolnay/rust-toolchain@stable
78+ - name : Install Browser wasm32 target
79+ run : rustup target add wasm32-unknown-unknown
80+ - name : Build
81+ run : cargo build -p partial-idl-parser --all-features --target wasm32-unknown-unknown
82+
83+ test :
84+ name : Test
85+ strategy :
86+ matrix :
87+ include :
88+ - target : aarch64-pc-windows-msvc
89+ os : windows-2022
90+ - target : x86_64-unknown-linux-gnu
91+ os : ubuntu-22.04
92+ - target : x86_64-apple-darwin
93+ os : macos-13
94+ - target : x86_64-pc-windows-msvc
95+ os : windows-2022
96+ - target : x86_64-apple-darwin
97+ os : macos-13
98+ runs-on : ${{ matrix.os }}
99+ steps :
100+ - name : Checkout repository
101+ uses : actions/checkout@v4
102+ - uses : Swatinem/rust-cache@v2
103+ - name : Install Rust toolchain
104+ uses : dtolnay/rust-toolchain@stable
105+ - name : Install Browser wasm32 target
106+ run : rustup target add wasm32-unknown-unknown
107+ - name : Build
108+ run : cargo build -p partial-idl-parser --all-features --target wasm32-unknown-unknown
0 commit comments