-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
221 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "cargo" | ||
directories: | ||
- "/exercises/1-course-introduction/1-introduction/1-setup-your-installation" | ||
- "/exercises/1-course-introduction/1-introduction/2-embedded" | ||
- "/exercises/2-foundations-of-rust/1-basic-syntax/1-basic-syntax" | ||
- "/exercises/2-foundations-of-rust/2-ownership-and-references/1-move-semantics" | ||
- "/exercises/2-foundations-of-rust/2-ownership-and-references/2-borrowing" | ||
- "/exercises/2-foundations-of-rust/3-advanced-syntax/1-error-propagation" | ||
- "/exercises/2-foundations-of-rust/3-advanced-syntax/2-error-handling" | ||
- "/exercises/2-foundations-of-rust/3-advanced-syntax/3-slices" | ||
- "/exercises/2-foundations-of-rust/3-advanced-syntax/4-ring-buffer" | ||
- "/exercises/2-foundations-of-rust/3-advanced-syntax/5-boxed-data" | ||
- "/exercises/2-foundations-of-rust/4-traits-and-generics/1-local-storage-vec" | ||
- "/exercises/2-foundations-of-rust/5-closures-and-dynamic-dispatch/1-config-reader" | ||
- "/exercises/3-crate-engineering/1-crate-engineering/1-my-serde-app" | ||
- "/exercises/3-crate-engineering/1-crate-engineering/3-bsn" | ||
- "/exercises/3-crate-engineering/1-crate-engineering/4-3d-printer" | ||
- "/exercises/3-crate-engineering/1-crate-engineering/5-fizzbuzz" | ||
- "/exercises/4-multitasking/2-parallel-multitasking/1-tf-idf" | ||
- "/exercises/4-multitasking/2-parallel-multitasking/2-mutex" | ||
- "/exercises/4-multitasking/3-asynchronous-multitasking/0-sync-to-async" | ||
- "/exercises/4-multitasking/3-asynchronous-multitasking/1-async-channels" | ||
- "/exercises/4-multitasking/3-asynchronous-multitasking/2-async-chat" | ||
- "/exercises/4-multitasking/3-asynchronous-multitasking/3-measurement-data-sink" | ||
- "/exercises/4-multitasking/3-asynchronous-multitasking/3-measurement-data-sink/node-simulator" | ||
- "/exercises/6-rust-for-systems-programming/1-foreign-function-interface/1-crc-in-c" | ||
- "/exercises/6-rust-for-systems-programming/1-foreign-function-interface/2-crc-in-rust" | ||
- "/exercises/6-rust-for-systems-programming/1-foreign-function-interface/3-tweetnacl-bindgen" | ||
- "/exercises/7-rust-for-data-science/1-rust-from-python/1-hello-world" | ||
- "/exercises/7-rust-for-data-science/1-rust-from-python/2-strompy" | ||
- "/exercises/8-embedded/1-embedded-ecosystem/1-lsm303agr-id" | ||
- "/exercises/8-embedded/2-portable-drivers/1-lsm303agr-driver" | ||
- "/exercises/8-embedded/3-async-on-embedded/1-compass" | ||
- "/exercises/8-embedded/4-embassy-framework/1-embassy-project" | ||
schedule: | ||
interval: "weekly" | ||
day: "thursday" | ||
groups: | ||
exercises-dependencies: | ||
patterns: | ||
- "*" | ||
- package-ecosystem: "npm" | ||
directory: "/slides/" | ||
schedule: | ||
interval: "weekly" | ||
day: "thursday" | ||
groups: | ||
npm-dependencies: | ||
patterns: | ||
- "*" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "thursday" | ||
groups: | ||
ci-dependencies: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: checks | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches-ignore: | ||
- 'release/**' | ||
merge_group: | ||
branches: | ||
- main | ||
workflow_call: {} | ||
|
||
jobs: | ||
check: | ||
name: "Check everything still builds" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 'lts/*' | ||
- name: Install mdbook | ||
run: | | ||
wget --no-verbose "https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz" | ||
tar -xzf mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz | ||
sudo mv mdbook /usr/bin/ | ||
- name: Run checks | ||
run: ./check.sh | ||
- name: Build book and slides | ||
run: ./build-all.sh ${{github.event.repository.name}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: pages | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 'lts/*' | ||
- name: Install mdbook | ||
run: | | ||
wget --no-verbose "https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz" | ||
tar -xzf mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz | ||
sudo mv mdbook /usr/bin/ | ||
- name: Build | ||
run: ./build-all.sh ${{github.event.repository.name}} | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
- name: Upload artifacts | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: public/ | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
needs: build | ||
runs-on: ubuntu-latest | ||
name: Deploy | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*/**/target | ||
target | ||
.idea | ||
public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Unit 4.1 - Introduction to Multitasking | ||
|
||
<a href="/slides/4_1/" target="_blank">Slides</a> | ||
<a href="/rust-training/slides/4_1-introduction-to-multitasking/" target="_blank">Slides</a> | ||
|
||
*There are no exercises for this unit* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
echo "TODO: use $1 as base" | ||
|
||
rm -rf public/ | ||
mkdir -p public/ | ||
|
||
# build mdbook | ||
pushd book | ||
mdbook build | ||
popd | ||
mv book/target/* ./public/ | ||
|
||
# build slides | ||
pushd slides | ||
npm install | ||
for f in *.md; do | ||
npm run build -- --out "dist/${f%.md}" --base "/rust-training/slides/$f{%.md}/" "$f" | ||
done | ||
popd | ||
mv slides/dist ./public/slides |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
TARGETS=$(find exercises/ -name Cargo.toml | sort) | ||
|
||
echo "Check all examples are covered by dependabot" | ||
for target in $TARGETS; do | ||
DIRNAME=$(dirname "$target") | ||
grep -Fxq " - \"/$DIRNAME\"" .github/dependabot.yml || echo "Missing entry in dependabot.yml: $DIRNAME" 1>&2 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ fonts: | |
drawings: | ||
persist: false | ||
layout: cover | ||
routerMode: hash | ||
--- | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.