interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / serde_json / .github / workflows / ci.yml

157 lines · 5417 bytes Raw Blame History
1name: CI
2
3on:
4 push:
5 pull_request:
6 workflow_dispatch:
7 schedule: [cron: "40 1 * * *"]
8
9permissions:
10 contents: read
11
12env:
13 RUSTFLAGS: -Dwarnings
14
15jobs:
16 test:
17 name: Rust nightly ${{matrix.os == 'windows' && '(windows)' || ''}}
18 runs-on: ${{matrix.os}}-latest
19 strategy:
20 fail-fast: false
21 matrix:
22 os: [ubuntu, windows]
23 timeout-minutes: 45
24 steps:
25 - uses: actions/checkout@v7
26 - uses: dtolnay/rust-toolchain@nightly
27 - run: cargo test
28 - run: cargo test --features preserve_order --tests -- --skip ui --exact
29 - run: cargo test --features float_roundtrip --tests -- --skip ui --exact
30 - run: cargo test --features arbitrary_precision --tests -- --skip ui --exact
31 - run: cargo test --features float_roundtrip,arbitrary_precision --tests -- --skip ui --exact
32 - run: cargo test --features raw_value --tests -- --skip ui --exact
33 - run: cargo test --features unbounded_depth --tests -- --skip ui --exact
34 - uses: actions/upload-artifact@v7
35 if: matrix.os == 'ubuntu' && always()
36 with:
37 name: Cargo.lock
38 path: Cargo.lock
39 continue-on-error: true
40
41 build:
42 name: Rust ${{matrix.rust}} ${{matrix.os == 'windows' && '(windows)' || ''}}
43 runs-on: ${{matrix.os}}-latest
44 strategy:
45 fail-fast: false
46 matrix:
47 rust: [beta, 1.85.0, 1.71.0]
48 os: [ubuntu]
49 include:
50 - rust: stable
51 os: ubuntu
52 target: aarch64-unknown-none
53 - rust: stable
54 os: windows
55 timeout-minutes: 45
56 steps:
57 - uses: actions/checkout@v7
58 - uses: dtolnay/rust-toolchain@master
59 with:
60 toolchain: ${{matrix.rust}}
61 targets: ${{matrix.target}}
62 - run: cargo check --manifest-path tests/crate/Cargo.toml
63 - run: cargo check --manifest-path tests/crate/Cargo.toml --features float_roundtrip
64 - run: cargo check --manifest-path tests/crate/Cargo.toml --features arbitrary_precision
65 - run: cargo check --manifest-path tests/crate/Cargo.toml --features raw_value
66 - run: cargo check --manifest-path tests/crate/Cargo.toml --features unbounded_depth
67 - run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc
68 - run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,arbitrary_precision
69 - run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,raw_value
70 - run: cargo check --manifest-path tests/crate/Cargo.toml --features serde_json/preserve_order
71 if: matrix.rust != '1.71.0'
72 - run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,serde_json/preserve_order
73 if: matrix.rust != '1.71.0'
74 - name: Build without std
75 run: cargo check --manifest-path tests/crate/Cargo.toml --target
76 ${{matrix.target}} --no-default-features --features alloc
77 if: matrix.target
78
79 minimal:
80 name: Minimal versions
81 runs-on: ubuntu-latest
82 timeout-minutes: 45
83 steps:
84 - uses: actions/checkout@v7
85 - uses: dtolnay/rust-toolchain@nightly
86 - run: cargo generate-lockfile -Z minimal-versions
87 - run: cargo check --locked
88
89 miri:
90 name: Miri (${{matrix.name}})
91 runs-on: ubuntu-latest
92 strategy:
93 fail-fast: false
94 matrix:
95 include:
96 - name: 64-bit little endian
97 target: x86_64-unknown-linux-gnu
98 - name: 64-bit big endian
99 target: powerpc64-unknown-linux-gnu
100 - name: 32-bit little endian
101 target: i686-unknown-linux-gnu
102 - name: 32-bit big endian
103 target: mips-unknown-linux-gnu
104 env:
105 MIRIFLAGS: -Zmiri-strict-provenance
106 timeout-minutes: 45
107 steps:
108 - uses: actions/checkout@v7
109 - uses: dtolnay/rust-toolchain@miri
110 - run: cargo miri setup
111 - run: cargo miri test --target ${{matrix.target}}
112 - run: cargo miri test --target ${{matrix.target}} --features preserve_order,float_roundtrip,arbitrary_precision,raw_value
113
114 clippy:
115 name: Clippy
116 runs-on: ubuntu-latest
117 if: github.event_name != 'pull_request'
118 timeout-minutes: 45
119 steps:
120 - uses: actions/checkout@v7
121 - uses: dtolnay/rust-toolchain@clippy
122 - run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic
123 - run: cargo clippy --all-features --tests -- -Dclippy::all -Dclippy::pedantic
124
125 doc:
126 name: Documentation
127 runs-on: ubuntu-latest
128 timeout-minutes: 45
129 env:
130 RUSTDOCFLAGS: -Dwarnings
131 steps:
132 - uses: actions/checkout@v7
133 - uses: dtolnay/rust-toolchain@nightly
134 - uses: dtolnay/install@cargo-docs-rs
135 - run: cargo docs-rs
136
137 fuzz:
138 name: Fuzz
139 runs-on: ubuntu-latest
140 timeout-minutes: 45
141 steps:
142 - uses: actions/checkout@v7
143 - uses: dtolnay/rust-toolchain@nightly
144 - uses: dtolnay/install@cargo-fuzz
145 - run: cargo fuzz check
146
147 outdated:
148 name: Outdated
149 runs-on: ubuntu-latest
150 if: github.event_name != 'pull_request'
151 timeout-minutes: 45
152 steps:
153 - uses: actions/checkout@v7
154 - uses: dtolnay/rust-toolchain@stable
155 - uses: dtolnay/install@cargo-outdated
156 - run: cargo outdated --exit-code 1
157 - run: cargo outdated --manifest-path fuzz/Cargo.toml --exit-code 1