-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (31 loc) · 1.09 KB
/
build_for_rasp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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: |
sudo 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: Copy Repository to rpi-root
run: |
sudo mkdir -p rpi-root/EVA/
sudo cp -r ${GITHUB_WORKSPACE}/Oceanix/* rpi-root/EVA/
- name: Compile in Raspberry Pi environment
run: |
sudo chroot rpi-root /bin/bash -c "ls -l && cd EVA && ls -l && pwd && chmod +x install.sh && ./install.sh"
- name: Retrieve built artifacts
run: sudo cp rpi-root/Oceanix/build/* ./build-output/