Skip to content

Commit

Permalink
Add GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
mthmulders committed Jan 12, 2021
1 parent 55c6a76 commit c21ee42
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-raspberry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build for Raspberry Pi

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Download ARM Toolchain
run: |
pushd /tmp
wget "https://developer.arm.com/-/media/Files/downloads/gnu-a/10.2-2020.11/binrel/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf.tar.xz?revision=d0b90559-3960-4e4b-9297-7ddbc3e52783&la=en&hash=985078B758BC782BC338DB947347107FBCF8EF6B"
tar xf gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf.tar.xz
- name: Install Standard Rust library for Raspberry Pi 2/3/4
run: |
rustup target add armv7-unknown-linux-gnueabihf
- name: Perform build
run: |
./cross-compile-armv7.sh
env:
ARMHF_TOOLCHAIN_PATH: "/tmp/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf/"

0 comments on commit c21ee42

Please sign in to comment.