-
Notifications
You must be signed in to change notification settings - Fork 243
37 lines (35 loc) · 1.18 KB
/
main.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
name: Build Image
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Update apt
run: sudo apt-get update
- name: Install Dependencies
run: sudo apt install coreutils p7zip-full qemu-user-static
- name: Checkout CustomPiOS
uses: actions/checkout@v2
with:
repository: 'guysoft/CustomPiOS'
path: CustomPiOS
- name: Checkout Project Repository
uses: actions/checkout@v2
with:
repository: ${{ github.repository }}
path: repository
submodules: true
- name: Download Raspbian Image
run: cd repository/src/image && wget -q -c --trust-server-names 'https://downloads.raspberrypi.org/raspios_lite_armhf_latest'
- 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
run: cp ${{ github.workspace }}/repository/src/workspace/*-raspios-*-lite.img build.img
- name: Zip Output
run: gzip build.img
- uses: actions/upload-artifact@v1
with:
name: build.img.gz
path: build.img.gz