From 1bb20da4317d8199405b8018c9e3d9c230ee53b8 Mon Sep 17 00:00:00 2001 From: chrysn Date: Mon, 15 Apr 2024 17:08:38 +0200 Subject: [PATCH] CI: Change RIOT in-place to assert that its use of riot-wrappers 0.8 is compatible with 0.9 --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e473e71..7d39f7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,8 +36,10 @@ jobs: rm -f .cargo/config.toml mkdir -p .cargo # Keep working if RIOT ever decides it doesn't need overrides any more echo '[patch.crates-io]' >> .cargo/config.toml - echo 'riot-wrappers = { path = "../", version = "*" }' >> .cargo/config.toml + echo 'riot-wrappers = { path = "../", version = "0.9.0-alpha.1" }' >> .cargo/config.toml echo 'riot-sys = { git = "https://github.com/RIOT-OS/rust-riot-sys" }' >> .cargo/config.toml + # The 0.8 to 0.9 upgrade is such that we don't need a flag day as long as "nobody is holding it wrong". + find -name Cargo.toml -exec sed -i 's/\(^riot-wrappers.*\)"\^\?0.8"\(.*\)/\1"0.9.0-alpha.1"\2/' '{}' '+' - name: Pull cargo updates # No sense in running this in parallel -- this will download the index # and all relevant crates once, and after that, just make some notes in Cargo.lock