Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:
jobs:
test-firmware-build:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2.4.0
- uses: cachix/install-nix-action@v16
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/WeeklyCheckOfRustNightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
- cron: "0 0 * * FRI"
jobs:
test-firmware-against-latest-nightly:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2.4.0
- uses: cachix/install-nix-action@v16
Expand Down
18 changes: 18 additions & 0 deletions ateam-common-packets/include/robot_metadata.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const char *const ROBOT_NAMES[] = {
"Kaladin",
"Shallan",
"Dalinar",
"Navani",
"Szeth",
"Teft",
"Lift",
"Venli",
"Sylphrena",
"Pattern",
"The Stormfather",
"The Sibling",
"Auxiliary",
"Phenadorana",
"Wyndle",
"Timbre"
};
12 changes: 12 additions & 0 deletions ateam-common-packets/rust-lib/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,22 @@ fn main() {
// Unwrap the Result and panic on failure.
.expect("Unable to generate bindings");

let robot_metadata_bindings = create_configured_builder()
// The input header we would like to generate
// bindings for.
.header("../include/robot_metadata.h")
.generate()
// Unwrap the Result and panic on failure.
.expect("Unable to generate robot metadata bindings");

// Write the bindings to the lib source dir
let out_dir = "src";

bindings
.write_to_file(Path::new(&out_dir).join("bindings.rs"))
.expect("Couldn't write Radio packet bindings!");

robot_metadata_bindings
.write_to_file(Path::new(&out_dir).join("metadata_bindings.rs"))
.expect("Couldn't write robot metadata bindings!");
}
Loading