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