forked from Rat-OS/RatOS
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (53 loc) · 1.85 KB
/
BuildRaspiOS.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build RatOS - Raspberry Pi OS buster
on:
push:
branches:
- '**'
paths:
- 'src/**'
- 'emulation/**'
- '.github/workflows/BuildRaspiOS.yml'
tags-ignore:
- "**"
pull_request:
types: [ opened, edited, reopened, synchronize ]
paths:
- 'src/**'
- 'emulation/**'
- '.github/workflows/BuildRaspiOS.yml'
workflow_dispatch:
jobs:
raspiosbuild:
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: sudo apt update; sudo apt install --yes coreutils p7zip-full qemu-user-static zip
- name: Checkout CustomPiOS
uses: actions/checkout@v2
with:
repository: "guysoft/CustomPiOS"
path: CustomPiOS
- name: Checkout RatOS 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_oldstable_lite_armhf_latest.torrent
- name: Comparing Checksums
run: |
cd repository/src/image
curl -JL https://downloads.raspberrypi.org/raspios_oldstable_lite_armhf_latest.sha256 | awk '{print $1" "$2}' | sha256sum -c
- 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 RatOS-latest.img
- name: Compress the image
run: zip RatOS-latest.zip RatOS-latest.img
- uses: actions/upload-artifact@v2
with:
name: RatOS-latest.zip
path: RatOS-latest.zip