Skip to content

Commit d86daf4

Browse files
authored
Merge pull request #1027 from quartiq/miniconf-schema
Miniconf schema
2 parents b3bb356 + 8c2e629 commit d86daf4

59 files changed

Lines changed: 1944 additions & 1687 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 40 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,22 @@ jobs:
1515
style:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v2
19-
- uses: actions-rs/toolchain@v1
20-
with:
21-
toolchain: stable
22-
target: thumbv7em-none-eabihf
23-
override: true
24-
- name: cargo fmt --check
25-
uses: actions-rs/cargo@v1
26-
with:
27-
command: fmt
28-
args: --all -- --check
29-
- uses: actions-rs/clippy-check@v1
30-
with:
31-
token: ${{ secrets.GITHUB_TOKEN }}
32-
- name: cargo check
33-
uses: actions-rs/cargo@v1
34-
with:
35-
command: check
36-
args: --verbose
37-
18+
- uses: actions/checkout@v5
19+
- uses: dtolnay/rust-toolchain@stable
20+
with:
21+
targets: thumbv7em-none-eabihf
22+
components: clippy,rustfmt
23+
- run: cargo fmt --all -- --check
24+
- run: cargo clippy
25+
- run: cargo check --all --verbose
3826
- uses: actions/setup-python@v1
3927
with:
4028
python-version: 3.12
41-
- name: Install Python Dependencies
42-
run: |
29+
- run: |
4330
python -m pip install --upgrade pip
4431
pip install py/
4532
pip install pylint
46-
- name: Run Pylint
47-
run: |
33+
- run: |
4834
pylint py/stabilizer
4935
5036
compile:
@@ -63,68 +49,51 @@ jobs:
6349
features: nightly
6450
continue-on-error: true
6551
steps:
66-
- uses: actions/checkout@v2
67-
- uses: actions-rs/toolchain@v1
52+
- uses: actions/checkout@v5
53+
- uses: dtolnay/rust-toolchain@master
6854
with:
6955
toolchain: ${{ matrix.toolchain }}
70-
target: thumbv7em-none-eabihf
71-
override: true
72-
- uses: actions-rs/cargo@v1
73-
with:
74-
command: build
75-
args: --release --features "${{ matrix.features }}"
56+
targets: thumbv7em-none-eabihf
57+
- run: cargo build --release --features "${{ matrix.features }}"
7658

77-
doc:
59+
schema:
7860
runs-on: ubuntu-latest
7961
steps:
80-
- uses: actions/checkout@v2
62+
- uses: actions/checkout@v5
63+
- uses: dtolnay/rust-toolchain@stable
64+
# https://github.com/rust-lang/cargo/issues/13051
65+
- run: cargo run --bin dual-iir --target x86_64-unknown-linux-gnu
66+
- run: cargo run --bin lockin --target x86_64-unknown-linux-gnu
67+
- run: cargo run --bin dds --target x86_64-unknown-linux-gnu
8168

82-
- uses: actions-rs/toolchain@v1
69+
doc:
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v5
73+
- uses: dtolnay/rust-toolchain@stable
8374
with:
84-
toolchain: stable
85-
target: thumbv7em-none-eabihf
86-
override: true
87-
75+
targets: thumbv7em-none-eabihf
8876
- uses: Swatinem/rust-cache@v1
89-
9077
- uses: peaceiris/actions-mdbook@v1
9178
with:
9279
mdbook-version: '0.4.12'
93-
94-
- name: Install Deadlinks
95-
uses: actions-rs/cargo@v1
96-
with:
97-
command: install
98-
args: |
99-
cargo-deadlinks
100-
101-
- name: Install Linkcheck
102-
uses: actions-rs/cargo@v1
103-
with:
104-
command: install
105-
args: mdbook-linkcheck
106-
107-
- name: cargo doc
108-
uses: actions-rs/cargo@v1
109-
with:
110-
command: doc
111-
args: --no-deps -p miniconf -p idsp -p ad9959 -p stabilizer
112-
113-
- name: cargo deadlinks
114-
uses: actions-rs/cargo@v1
80+
- run: cargo install cargo-deadlinks
81+
- run: cargo install mdbook-linkcheck
82+
- run: |
83+
cargo doc --no-deps \
84+
-p miniconf -p idsp \
85+
-p ad9959 -p ad9912 -p stream -p platform -p signal_generator \
86+
-p encoded_pin -p serial_settings -p urukul \
87+
-p stabilizer
88+
# We intentionally ignore fragments, as RTIC may generate fragments for various
89+
# auto-generated code.
90+
- run: cargo deadlinks --dir target/thumbv7em-none-eabihf/doc --ignore-fragments --check-intra-doc-links
11591
continue-on-error: true
116-
with:
117-
command: deadlinks
118-
# We intentionally ignore fragments, as RTIC may generate fragments for various
119-
# auto-generated code.
120-
args: --dir target/thumbv7em-none-eabihf/doc --ignore-fragments --check-intra-doc-links
121-
122-
- name: Test Book
123-
working-directory: book
92+
- name: build
12493
run: |
125-
# Install depedencies at our cache location
12694
mv ../target/thumbv7em-none-eabihf/doc src/firmware
12795
mdbook build
96+
working-directory: book
12897

12998
hitl-trigger:
13099
runs-on: ubuntu-latest

.github/workflows/docs.yml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,30 @@ jobs:
1010
release-docs:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v5
1414
with:
1515
fetch-depth: 0
16-
17-
- uses: actions-rs/toolchain@v1
16+
- uses: dtolnay/rust-toolchain@stable
1817
with:
19-
toolchain: stable
20-
target: thumbv7em-none-eabihf
21-
override: true
22-
18+
targets: thumbv7em-none-eabihf
2319
- uses: Swatinem/rust-cache@v1
24-
25-
- name: Install Linkcheck
26-
uses: actions-rs/cargo@v1
20+
- uses: actions-rs/cargo@v1
2721
with:
2822
command: install
2923
args: mdbook-linkcheck
30-
3124
- uses: peaceiris/actions-mdbook@v1
3225
with:
3326
mdbook-version: '0.4.12'
34-
35-
- uses: actions-rs/cargo@v1
36-
with:
37-
command: doc
38-
args: --no-deps -p miniconf -p ad9959 -p stabilizer -p idsp -p urukul -p serial-settings
39-
40-
- name: Build Book
41-
working-directory: book
27+
- run: |
28+
cargo doc --no-deps \
29+
-p miniconf -p idsp \
30+
-p ad9959 -p ad9912 -p stream -p platform -p signal_generator \
31+
-p encoded_pin -p serial_settings -p urukul \
32+
-p stabilizer
33+
- working-directory: book
4234
run: |
4335
mv ../target/thumbv7em-none-eabihf/doc src/firmware
4436
mdbook build
45-
4637
- uses: peaceiris/actions-gh-pages@v3.8.0
4738
with:
4839
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)