forked from batocera-linux/batocera.linux
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (52 loc) · 1.63 KB
/
Copy pathbuild.yaml
File metadata and controls
61 lines (52 loc) · 1.63 KB
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
name: Compile RK3588
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: self-hosted
steps:
- name: Get more disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential git libncurses5-dev libssl-dev \
mercurial texinfo zip default-jre imagemagick subversion autoconf \
automake bison scons libglib2.0-dev bc mtools u-boot-tools flex \
wget cpio dosfstools libtool gcc-multilib g++-multilib
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y libc6:i386 libncurses5:i386 libstdc++6:i386
pip3 install conan
- name: Initialize and update submodules
run: |
cd ${{ github.workspace }}
rm -rf buildroot
git submodule init
git submodule update --init --recursive
- name: Build Batocera
run: |
cd ${{ github.workspace }}
docker pull batoceralinux/batocera.linux-build:latest
script -q -c "make rk3588-build" /dev/null
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: batocera-images
path: ${{ github.workspace }}/output/images/batocera/images/