From 7223da3570fabeb6137e08926c2d66fde8abb472 Mon Sep 17 00:00:00 2001 From: Patrick Lang Date: Sun, 2 Aug 2020 12:06:59 -0700 Subject: [PATCH] Fixup build paths and add to main readme --- .github/workflows/build-raspi.yaml | 15 +++++++++++++++ README.md | 4 ++++ examples-raspi/.github/workflows/build-raspi.yaml | 14 -------------- 3 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/build-raspi.yaml delete mode 100644 examples-raspi/.github/workflows/build-raspi.yaml diff --git a/.github/workflows/build-raspi.yaml b/.github/workflows/build-raspi.yaml new file mode 100644 index 00000000..d19dc402 --- /dev/null +++ b/.github/workflows/build-raspi.yaml @@ -0,0 +1,15 @@ +name: Build Rasperry Pi Sample +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build for armv7-unknown-linux-gnueabihf + uses: actions-rs/cargo@v1 + working-directory: ./examples-raspi + with: + use-cross: true + command: build + args: --target armv7-unknown-linux-gnueabihf diff --git a/README.md b/README.md index c9009dd6..a68d3cdf 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,10 @@ fn HardFault(ef: &ExceptionFrame) -> ! { ``` +## Raspberry Pi + +A sample project is available under [examples-raspi](./examples-raspi) + ## License Licensed under either of diff --git a/examples-raspi/.github/workflows/build-raspi.yaml b/examples-raspi/.github/workflows/build-raspi.yaml deleted file mode 100644 index 479114d9..00000000 --- a/examples-raspi/.github/workflows/build-raspi.yaml +++ /dev/null @@ -1,14 +0,0 @@ -name: Build It -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Build for Raspberry Pi 2/3/4 32 bit - uses: actions-rs/cargo@v1 - with: - use-cross: true - command: build - args: --target armv7-unknown-linux-gnueabihf \ No newline at end of file