Build FluiddPI - RapsiOS #1145
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build FluiddPI - RapsiOS | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
pull_request: | |
types: [ opened, edited ] | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
raspiosbuild: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Dependencies | |
run: sudo apt update; sudo apt install coreutils p7zip-full qemu-user-static zip | |
- name: Checkout CustomPiOS | |
uses: actions/checkout@v2 | |
with: | |
repository: 'guysoft/CustomPiOS' | |
path: CustomPiOS | |
- name: Checkout FluiddPI Project | |
uses: actions/checkout@v2 | |
with: | |
repository: ${{ github.repository }} | |
path: repository | |
submodules: true | |
- name: Download Raspberry Pi OS Source Image | |
run: aria2c -d repository/src/image/ --seed-time=0 https://downloads.raspberrypi.org/raspios_lite_armhf_latest.torrent | |
- name: Update CustomPiOS Paths | |
run: cd repository/src && ../../CustomPiOS/src/update-custompios-paths | |
- name: Build Image | |
run: sudo modprobe loop && cd repository/src && sudo bash -x ./build_dist | |
- name: Copy output image | |
run: cp ${{ github.workspace }}/repository/src/workspace/*-raspios-*-lite.img fluiddpi-raspios-lite-latest.img | |
- name: Compress the image | |
run: zip fluiddpi-raspios-lite-latest.zip fluiddpi-raspios-lite-latest.img | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: fluiddpi-raspios-lite-latest.zip | |
path: fluiddpi-raspios-lite-latest.zip |