Skip to content

Commit 633adda

Browse files
authored
Merge branch 'master' into chore/userlib-namespace-imports
2 parents a21abd3 + a677a8d commit 633adda

File tree

318 files changed

+5567
-2053
lines changed

Some content is hidden

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

318 files changed

+5567
-2053
lines changed

.github/workflows/build-boards.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ jobs:
263263
app_toml: test/tests-stm32g0/app-g070.toml
264264
image: default
265265
- build: stm32f3
266-
app_name: tests-stm32fx
266+
app_name: tests-stm32fx-f3
267267
app_toml: test/tests-stm32fx/app-f3.toml
268268
image: default
269269
- build: stm32f4

.github/workflows/build-one.yml

+17-8
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ on:
2525

2626
jobs:
2727
build-one:
28+
permissions:
29+
id-token: write
30+
attestations: write
2831
name: "${{ inputs.app_name }}/${{ inputs.app_toml}}"
2932
runs-on: ${{ inputs.os }}
3033
env:
@@ -44,7 +47,7 @@ jobs:
4447
uses: Swatinem/rust-cache@v2
4548

4649
- name: Cache vcpkg
47-
uses: actions/cache@v3
50+
uses: actions/cache@v4
4851
with:
4952
path: C:\vcpkg\downloads
5053
key: ${{ runner.os }}-vcpkg-download-${{ inputs.os }}-${{ github.sha }}
@@ -60,19 +63,18 @@ jobs:
6063

6164
- name: Fetch Humility
6265
uses: dsaltares/fetch-gh-release-asset@master
63-
if: inputs.os == 'ubuntu-latest'
66+
if: inputs.os == 'ubuntu-latest' || inputs.os == 'oxide-colo-builder-hubris'
6467
with:
6568
repo: "oxidecomputer/humility"
6669
version: "59047694"
6770
file: "humility"
6871
target: "target/release/humility"
69-
token: ${{ secrets.GITHUB_TOKEN }}
7072

7173
- name: Test Humility manifest
7274
# we need to chmod because all artifacts are marked as non-executable
73-
if: inputs.os == 'ubuntu-latest'
75+
if: inputs.os == 'ubuntu-latest' || inputs.os == 'oxide-colo-builder-hubris'
7476
run: |
75-
sudo apt-get update && sudo apt-get install libusb-1.0-0-dev libftdi1-dev
77+
sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libftdi1-dev
7678
sudo chmod +x target/release/humility
7779
for image in `echo ${{ inputs.image }} | tr "," "\n"`; do \
7880
mv target/${{ inputs.app_name }}/dist/$image/build-${{ inputs.app_name }}-image-$image.zip target/${{ inputs.app_name }}/dist/; \
@@ -84,10 +86,17 @@ jobs:
8486
run: |
8587
cargo xtask clippy ${{ inputs.app_toml}} -- --deny warnings
8688
89+
- name: Attestation
90+
uses: actions/attest-build-provenance@v1
91+
# Only attest if we're doing a colo build
92+
if: inputs.os == 'oxide-colo-builder-hubris'
93+
with:
94+
subject-path: target/${{ inputs.app_name }}/dist/build-${{ inputs.app_name }}-image-*.zip
95+
8796
# upload the output of our build
8897
- name: Upload build archive
89-
uses: actions/upload-artifact@v3
90-
if: inputs.os == 'ubuntu-latest'
98+
uses: actions/upload-artifact@v4
99+
if: inputs.os == 'ubuntu-latest' || inputs.os == 'oxide-colo-builder-hubris'
91100
with:
92-
name: dist-${{ inputs.os }}-${{ inputs.build }}
101+
name: dist-${{ inputs.os }}-${{ inputs.app_name }}
93102
path: target/${{ inputs.app_name }}/dist/build-${{ inputs.app_name }}-image-*.zip

.github/workflows/release.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,24 @@ jobs:
1111
do-build:
1212
uses: ./.github/workflows/build-boards.yml
1313
with:
14-
os: ubuntu-latest
14+
os: oxide-colo-builder-hubris
1515
board-set: ${{ inputs.board-set }}
1616

1717
release-build:
1818
needs: do-build
19-
runs-on: ubuntu-latest
19+
runs-on: oxide-colo-builder-hubris
2020
steps:
2121
- name: grab binary
2222
id: grab
23-
uses: actions/download-artifact@v3
23+
uses: actions/download-artifact@v4
2424
with:
2525
path: out
2626
- name: prep
2727
run: |
28-
VERSION=$(cut -d/ -f3- <<< "$GITHUB_REF")
29-
VERSION=`echo $VERSION | awk -F- '{print $NF}'`
3028
OUT=${{ steps.grab.outputs.download-path }}
3129
for build in `ls $OUT`; do
3230
for f in `ls $OUT/$build`; do
33-
mv $OUT/$build/$f $OUT/`basename $f .zip`-$VERSION.zip
31+
mv $OUT/$build/$f $OUT/$f
3432
done
3533
done
3634
@@ -39,5 +37,6 @@ jobs:
3937
with:
4038
name: "${{ inputs.board-set }} release"
4139
fail_on_unmatched_files: true
40+
body: "These are UNVERSIONED hubris artifacts"
4241
files: |
4342
${{ steps.grab.outputs.download-path }}/*.zip

Cargo.lock

+30-32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+19-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ memoffset = { version = "0.6.5", default-features = false }
7676
multimap = { version = "0.8.3", default-features = false }
7777
nb = { version = "1", default-features = false }
7878
num = { version = "0.4", default-features = false }
79-
num-derive = { version = "0.3.3", default-features = false, features = ["full-syntax"] }
79+
num-derive = { version = "0.4", default-features = false }
8080
num-traits = { version = "0.2.12", default-features = false }
8181
p256 = { version = "0.13.2", default-features = false, features = ["ecdsa"] }
8282
panic-halt = { version = "0.2.0", default-features = false }
@@ -134,8 +134,24 @@ salty = { version = "0.3", default-features = false }
134134
spd = { git = "https://github.com/oxidecomputer/spd", default-features = false }
135135
tlvc = { git = "https://github.com/oxidecomputer/tlvc", default-features = false, version = "0.3.1" }
136136
tlvc-text = { git = "https://github.com/oxidecomputer/tlvc", default-features = false, version = "0.3.0" }
137-
transceiver-messages = { git = "https://github.com/oxidecomputer/transceiver-control/", default-features = false}
137+
transceiver-messages = { git = "https://github.com/oxidecomputer/transceiver-control/", default-features = false }
138138
vsc7448-pac = { git = "https://github.com/oxidecomputer/vsc7448", default-features = false }
139139

140+
[workspace.lints.rust]
141+
elided_lifetimes_in_paths = "warn"
142+
140143
[workspace.lints.clippy]
141-
wildcard_imports = "deny"
144+
# TODO: turn this back on once we've fixed them :/
145+
#wildcard_imports = "deny"
146+
147+
# TODO: should clean up the comments eventually and switch these back to warn.
148+
too_long_first_doc_paragraph = "allow"
149+
doc_lazy_continuation = "allow"
150+
151+
# TODO: these are currently allowed because it would be a giant pain to fix
152+
# them, but we should make them warn in the future!
153+
too_many_arguments = "allow"
154+
identity_op = "allow"
155+
missing_safety_doc = "allow"
156+
manual_inspect = "allow"
157+
single_match = "allow"

README.mkdn

+2-3
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,8 @@ application described by the TOML file.
152152
- `cargo xtask dist app/demo-stm32f4-discovery/app.toml` - stm32f4-discovery
153153
- `cargo xtask dist app/demo-stm32f4-discovery/app-f3.toml` - stm32f3-discovery
154154
- `cargo xtask dist app/lpc55xpresso/app.toml` - lpcxpresso55s69
155-
- `cargo xtask dist app/demo-stm32g0-nucleo/app-g031.toml` - stm32g031
156-
- `cargo xtask dist app/demo-stm32g0-nucleo/app-g070.toml` - stm32g070
157-
- `cargo xtask dist app/demo-stm32g0-nucleo/app-g0b1.toml` - stm32g0b1
155+
- `cargo xtask dist app/demo-stm32g0-nucleo/app-g031.toml` - stm32g031-nucleo
156+
- `cargo xtask dist app/demo-stm32g0-nucleo/app-g070.toml` - stm32g070-nucleo
158157
- `cargo xtask dist app/demo-stm32h7-nucleo/app-h743.toml` - nucleo-ih743zi2
159158
- `cargo xtask dist app/demo-stm32h7-nucleo/app-h753.toml` - nucleo-ih753zi
160159
- `cargo xtask dist app/gemini-bu/app.toml` - Gemini bringup board

app/demo-stm32f4-discovery/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ name = "demo-stm32f4-discovery"
2121
test = false
2222
doctest = false
2323
bench = false
24+
25+
[lints]
26+
workspace = true

app/demo-stm32g0-nucleo/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ name = "demo-stm32g0-nucleo"
2828
test = false
2929
doctest = false
3030
bench = false
31+
32+
[lints]
33+
workspace = true

app/demo-stm32g0-nucleo/app-g070-mini.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "demo-stm32g070-nucleo"
33
target = "thumbv6m-none-eabi"
44
chip = "../../chips/stm32g0"
55
memory = "memory-g070.toml"
6-
board = "stm32g070"
6+
board = "stm32g070-nucleo"
77
stacksize = 944
88

99
[kernel]

app/demo-stm32g0-nucleo/app-g070.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = "demo-stm32g070-nucleo"
22
target = "thumbv6m-none-eabi"
33
chip = "../../chips/stm32g0"
44
memory = "memory-g070.toml"
5-
board = "stm32g070"
5+
board = "stm32g070-nucleo"
66
stacksize = 944
77

88
[kernel]

app/demo-stm32h7-nucleo/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ name = "demo-stm32h7-nucleo"
2727
test = false
2828
doctest = false
2929
bench = false
30+
31+
[lints]
32+
workspace = true

app/donglet/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ name = "app-donglet"
2626
test = false
2727
doctest = false
2828
bench = false
29+
30+
[lints]
31+
workspace = true

0 commit comments

Comments
 (0)