Skip to content

Commit

Permalink
Merge branch 'oceanix_dev' of https://github.com/PoliTOcean/EVA_2025
Browse files Browse the repository at this point in the history
…into oceanix_dev
  • Loading branch information
SimoneFassio committed Nov 25, 2024
2 parents 28d6bbb + 2158a6f commit 16cca5e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build_for_rasp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build for Raspberry Pi

on:
push:
branches:
- oceanix_dev
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install QEMU and dependencies
run: |
sudo apt update
sudo apt install -y qemu qemu-user-static binfmt-support debootstrap
- name: Setup Raspberry Pi environment
run: |
mkdir rpi-root
sudo debootstrap --arch=armhf --foreign buster rpi-root http://archive.raspbian.org/raspbian
sudo cp /usr/bin/qemu-arm-static rpi-root/usr/bin/
sudo chroot rpi-root /bin/bash -c "debootstrap/debootstrap --second-stage"
- name: Compile in Raspberry Pi environment
run: |
sudo chroot rpi-root /bin/bash -c "chmod +x install.sh && ./install.sh"
- name: Retrieve built artifacts
run: sudo cp rpi-root/build/* ./build-output/

0 comments on commit 16cca5e

Please sign in to comment.