From 43467854db085e64c208b6df223477958aa5f8bc Mon Sep 17 00:00:00 2001 From: chrysn Date: Mon, 10 Jan 2022 09:00:25 +0100 Subject: [PATCH] CI: Add Rust build test --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 698e827d..fdffb65b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -121,6 +121,22 @@ jobs: DOCKER_IMAGE: ${{ env.DOCKER_REGISTRY }}/riotbuild:latest BOARDS: "native samr21-xpro" + - name: Rust build test + run: | + # Once 2022.01 is released, the switcharoo can be removed. + # Note that `git switch master` does not work because the checkout + # action does only minimal fetching. + (cd RIOT && git fetch origin master && git checkout FETCH_HEAD) + make -CRIOT/examples/rust-hello-world buildtest + (cd RIOT && git switch -) + env: + BUILD_IN_DOCKER: 1 + DOCKER_IMAGE: ${{ env.DOCKER_REGISTRY }}/riotbuild:latest + # Not all of them are actually available; still using the "canonical" + # list of representative boards above to keep this stable whil Rust + # support expands + BOARDS: "arduino-uno esp32-wroom-32 hifive1b msb-430h native pic32-wifire samr21-xpro" + - name: Run static tests run: | docker run --rm -t -v $(pwd)/RIOT:/data/riotbuild \