Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync missing-doc-variants branch to master #7

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
e8fbf5d
Integration with the `mcan` (#654)
glaeqen Mar 10, 2023
ef00865
Created the generic snake game (the one on the old Nokias) for the Wi…
jsh3lly May 14, 2023
e4b07c0
Update NVM API (#674)
nilfit May 15, 2023
67561d0
Fix itsybitsy_m4 CI error (#685)
jbeaurivage May 15, 2023
52073e8
Add defmt feature and derive error types (#684)
jbeaurivage May 26, 2023
eb0c887
Add `Qspi::free()` to release consumed pins (#667)
tgross35 May 27, 2023
8e9117a
Migration to `fugit` (#672)
glaeqen May 29, 2023
a971cbf
Fix example in wio_terminal (#687)
glaeqen May 29, 2023
063fd8f
Impl more standard traits for error types (#691)
jbeaurivage Jun 10, 2023
2b4410c
Add missing ADC pins for ATSAMD11D (#686)
Tremoneck Jun 10, 2023
74220dc
Fix incorrect APB clock state (#688)
glaeqen Jun 13, 2023
54bed01
v0.16.0 release (#692)
jbeaurivage Jul 15, 2023
bb0d07e
Add HAL version dep to atsame54_xpro (#694)
jbeaurivage Jul 15, 2023
0820f0d
Fix samd11_bare version (#695)
jbeaurivage Jul 15, 2023
fcbb7e5
Point pac/atsamd11d to correct docs (#698)
TG-Techie Sep 9, 2023
72e40ff
Mkrzero update (#697)
johngigantic Oct 2, 2023
85ab423
Fix release HAL crate workflow (#693)
jbeaurivage Oct 25, 2023
1d1bdd5
Update PAC's to svd2rust 0.30.2 (#683)
Tremoneck Oct 26, 2023
7d7b21a
Fix DMAC documentation (#703)
wolfenick Nov 13, 2023
3b60d03
bump hal to 0.16 for xiao_m0 (#708)
fooker Dec 4, 2023
4e7f8ef
Readme and warnings (#712)
ianrrees Jan 4, 2024
ceca9d4
Add adafruit matrix portal m4 (#713)
salsasteve Jan 9, 2024
75b24a2
Fix xiao_m0 spi clock used in spi_master (#711)
task-jp Jan 10, 2024
40680e7
Fix all clippy warnings, and deny them in CI
jbeaurivage Jan 11, 2024
3898d36
Remove pin pa28 from d21el (#717)
TethysSvensson Jan 15, 2024
6839e12
Fix a pwm pin configuration for thumbv7em (#720)
TethysSvensson Jan 22, 2024
49e0bcc
Added a PWM example for the Matrix Portal M4 (#721)
salsasteve Jan 24, 2024
d46b635
Update usb-device (#718)
ianrrees Feb 1, 2024
b138702
edgebadge: update embedded-graphics to 0.8 (#726)
LuckyTurtleDev Feb 15, 2024
ecf2f58
Re-organize using a proc-macro to support more devices (#728)
TethysSvensson Mar 8, 2024
3847d0f
`embedded-hal` v1 transition (#723)
jbeaurivage May 1, 2024
af1b255
Update bump-crates.yml (#730)
sajattack May 3, 2024
298c81d
[atsamd-bot] Bump crate versions (#732)
github-actions[bot] May 3, 2024
8ee27d1
Update atsamd-hal-macros Cargo.toml for publishing (#733)
jbeaurivage May 3, 2024
4f09ec3
atsamd11: Add USB clock (#734)
kevinmehall May 15, 2024
4027f8a
Remove statement excluding samd51j from i2s peripheral (#735)
FriederHannenheim May 23, 2024
02dbad6
eic: replace modify with write. prevent losing interrupts in intflag …
mattthebaker Jun 5, 2024
dda58d6
Fix Nightly doc build errors (#737)
kaidokert Jun 6, 2024
0fd342e
Add Winc1500 pins (#736)
kaidokert Jun 12, 2024
64cb169
Make I2C transactions continuous according to specification (#741)
fko-kuptec Jun 25, 2024
37a97c1
Updated XIAO M0 dependencies and examples (#742)
TheRolfFR Jul 15, 2024
bd5c82f
CI: continue BSP building workflow if build any BSP fails (#745)
ianrrees Aug 20, 2024
50897d3
CI: Rename BSP check for clearer project settings (#747)
ianrrees Aug 21, 2024
220af2b
Upgrade bitflags and get rid of TryFrom<()> implementations
jbeaurivage Aug 19, 2024
b8de816
Fix build failures for SAMD11 USB
jbeaurivage Aug 19, 2024
3d2ba76
Wait at end of ehal 0.2 blocking SPI writes
ianrrees Aug 16, 2024
4f2da15
Various small fixes (#749)
ianrrees Aug 23, 2024
77100fa
Fix nightly clippy lints
jbeaurivage Aug 30, 2024
280b5e0
Update itsybitsy_m0 and itsybitsy_m4 to HAL 0.17 (#754)
ianrrees Aug 30, 2024
44b2a76
grand_central_m4: Bump usb-device version (#753)
supersimple33 Aug 31, 2024
9e015e2
Update PACS to svd2rust 0.34 (#756)
jbeaurivage Sep 2, 2024
f0e9316
Update pygamer to HAL 0.17 (#750)
ianrrees Sep 6, 2024
6c9325e
Improve release workflows (#757)
jbeaurivage Sep 9, 2024
c497239
Bump pygamer (minor) (#758)
github-actions[bot] Sep 10, 2024
cbbd4f0
CI improvements (continued) (#759)
jbeaurivage Sep 12, 2024
e453894
chore(ci): `release-plz`: Complete overhaul of the release process (#…
jbeaurivage Oct 17, 2024
956d369
chore: release (#767)
github-actions[bot] Oct 17, 2024
d090df0
fix(ci): Login to crates.io before running release-plz (#769)
jbeaurivage Oct 17, 2024
127348c
fix: Cleanup newly introduced nightly Clippy lints (#763)
jbeaurivage Oct 18, 2024
a6c4abe
Merge branch 'master'
jbeaurivage Oct 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/actions/list-BSPs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ runs:
- id: compute-matrix
shell: bash
run: |
matrix_json=$(cat crates.json | jq -Mr -c '{ "bsp": (.boards | keys ), "toolchain": ["stable", "nightly"] }')
matrix_json=$(cat crates.json | jq -Mr -c '{ "bsp": [ (.boards | to_entries | .[] | {"name": (.key), "tier": .value.tier}) ] , "toolchain": ["stable", "nightly"] }')
echo "matrix=${matrix_json}" >> $GITHUB_OUTPUT
9 changes: 0 additions & 9 deletions .github/actions/sync-bsp-versions/action.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/actions/sync-bsp-versions/update-from-hal.py

This file was deleted.

9 changes: 0 additions & 9 deletions .github/actions/sync-pac-versions/action.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/actions/sync-pac-versions/update-from-pac.py

This file was deleted.

7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
# Check for updates every Monday
schedule:
interval: "weekly"
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Checklist
- [ ] `CHANGELOG.md` for the BSP or HAL updated
- [ ] All new or modified code is well documented, especially public items
- [ ] No new warnings or clippy suggestions have been introduced (see CI or check locally)
- [ ] No new warnings or clippy suggestions have been introduced - CI will **deny** clippy warnings by default! You may `#[allow]` certain lints where reasonable, but ideally justify those with a short comment.

## If Adding a new Board
- [ ] Board CI added to `crates.json`
Expand Down
66 changes: 56 additions & 10 deletions .github/workflows/build-bsp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,89 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: set-matrix
uses: ./.github/actions/list-BSPs

build:
name: "${{matrix.bsp.name}} (Tier ${{matrix.bsp.tier}}, ${{matrix.toolchain}})"
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.toolchain == 'nightly' }}
# There is a subtle difference between continue-on-error and setting
# strategy.fail-fast=false. Both will allow all jobs to run to completion,
# however continue-on-error lets the next workflow stage run regardless of
# failed jobs, strategy.fail-fast=false will skip subsequent stages if any
# job fails.
continue-on-error: true
needs: setup
strategy:
matrix: ${{fromJson(needs.setup.outputs.matrix)}}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Rust
run: |
rustup set profile minimal
rustup override set ${{ matrix.toolchain }}
target=$(cat ./crates.json | jq -Mr --arg board '${{ matrix.bsp }}' -c '.boards | .[$board] | .target')
target=$(cat ./crates.json | jq -Mr --arg board '${{ matrix.bsp.name }}' -c '.boards | .[$board] | .target')
rustup target add ${target}
rustup component add clippy

- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Build ${{ matrix.bsp }}
- name: Build ${{ matrix.bsp.name }}
run: |
build_invocation=$(cat ./crates.json | jq -Mr --arg board '${{ matrix.bsp }}' -c '.boards | .[$board] | .build')
build_invocation=$(cat ./crates.json | jq -Mr --arg board '${{ matrix.bsp.name }}' -c '.boards | .[$board] | .build')
set -ex
cd boards/${{ matrix.bsp }}
pushd boards/${{ matrix.bsp.name }}
$(${build_invocation})
popd
mkdir -p output
touch "output/build"

- name: Clippy ${{ matrix.bsp }}
- name: Clippy ${{ matrix.bsp.name }}
if: ${{ matrix.toolchain == 'nightly' }}
run: |
set -ex
build_invocation=$(cat ./crates.json | jq -Mr --arg board '${{ matrix.bsp }}' -c '.boards | .[$board] | .build')
build_invocation=$(cat ./crates.json | jq -Mr --arg board '${{ matrix.bsp.name }}' -c '.boards | .[$board] | .build')
clippy_invocation=$(echo ${build_invocation} | sed 's/cargo build/cargo clippy/g')
cd boards/${{ matrix.bsp }}
cd boards/${{ matrix.bsp.name }}
$(${clippy_invocation})

- name: Done
uses: actions/upload-artifact@v4
with:
# name needs to be unique in the workspace
name: "${{ matrix.bsp.name }}-${{ matrix.toolchain }}"
path: output

check-tier-1-bsps-build-stable:
runs-on: ubuntu-latest
needs: [setup, build]
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: successful-jobs
- name: Do checks
env:
MATRIX: ${{ needs.setup.outputs.matrix }}
run: |
tier_1_bsps=$(jq -Mr -c '.bsp[] | select(.tier == 1) | .name' <<< ${MATRIX})

success="true"
for bsp in ${tier_1_bsps}; do
if [ -f successful-jobs/"${bsp}"-stable/build ]; then
echo "${bsp}" built on stable toolchain
else
echo "${bsp}" failed to build on stable toolchain
success="false"
fi
done

if [ ${success} = "true" ]; then
echo "Tier 1 BSPs all built on stable"
else
false
fi
14 changes: 3 additions & 11 deletions .github/workflows/build-hal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: set-matrix
uses: ./.github/actions/list-HAL-variants

Expand All @@ -20,7 +20,7 @@ jobs:
matrix: ${{fromJson(needs.setup.outputs.matrix)}}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Rust
run: |
Expand All @@ -38,12 +38,4 @@ jobs:
set -ex
features=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_variants["${{matrix.pac}}"].features | join(",")')
target=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_variants["${{matrix.pac}}"].target')
cargo build --features=${features} --target=${target} --manifest-path=./hal/Cargo.toml

- name: Clippy HAL for ${{ matrix.pac }}
if: ${{ matrix.toolchain == 'nightly' }}
run: |
set -ex
features=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_variants["${{matrix.pac}}"].features | join(",")')
target=$(cat ./crates.json | jq -Mr --arg pac "${{matrix.pac}}" -c '.hal_variants["${{matrix.pac}}"].target')
cargo clippy --features=${features} --target=${target} --manifest-path=./hal/Cargo.toml
cargo clippy --features=${features} --target=${target} --manifest-path=./hal/Cargo.toml -- -D warnings
148 changes: 0 additions & 148 deletions .github/workflows/bump-crates.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Rust
run: |
Expand Down
Loading