This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 19
65 lines (58 loc) · 2.65 KB
/
end-to-end.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
65
name: end-to-end test
on:
repository_dispatch:
types: end-to-end
jobs:
build:
name: end-to-end test
runs-on: ubuntu-latest
steps:
- name: install system deps
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update
sudo apt-get install -y locales openssh-client wget zip unzip tar python3-gi python3-gi-cairo python3-cairo gir1.2-gtk-3.0 libdbus-1-dev libdbus-glib-1-dev libffi-dev build-essential libssl-dev python3-dev libgdk-pixbuf2.0-dev exfat-fuse exfat-utils
sudo usermod -a -G disk runner
- name: checkout code
uses: actions/checkout@v1
- name: setup python version
uses: actions/setup-python@v1
with:
python-version: '3.7'
- name: download custom kernel
run: |
wget https://drive.offspot.it/creator/bundled-in-creator/vexpress-boot.zip
unzip vexpress-boot.zip
- name: download static Qemu
run: |
wget https://drive.offspot.it/creator/bundled-in-creator/qemu-5.2.0-linux-x86_64.tar.gz
tar xvf qemu-5.2.0-linux-x86_64.tar.gz
- name: download etcher-cli (packaging only)
run: |
wget https://drive.offspot.it/creator/bundled-in-creator/balena-etcher-cli-1.4.8-linux-x64.tar.gz
mkdir -p etcher-cli
tar xf balena-etcher-cli-1.4.8-linux-x64.tar.gz -C etcher-cli --strip-components=1
- name: download aria2c (packaging only)
run: |
wget https://drive.offspot.it/creator/bundled-in-creator/aria2c-linux64.zip
unzip aria2c-linux64.zip
rm aria2c-linux64.zip
wget https://drive.offspot.it/creator/bundled-in-creator/ca-certificates.crt
- name: install python deps
run: |
python -m pip install --upgrade pip
pip install -r requirements-linux.txt
pip install -U pyinstaller
- name: compile app
run: pyinstaller --log-level=DEBUG kiwix-hotspot-linux.spec
- name: build test image with small projects
run: |
sudo dist/kiwix-hotspot cli --root --timezone UTC --aflatoun yes --edupi yes --nomad yes --mathews yes --edupi-resources https://download.openzim.org/wikifundi/2.0/resources_en_fr_2018-08.zip --zim-install wikipedia_fr_test.fr --size 16G
ls -lh ./hotspot-*.img || true
sudo rm -rf ./hotspot-*.img || true
sudo dist/kiwix-hotspot cache --build . reset --keep-master || true
- name: build test image with wikifundi
run: |
sudo dist/kiwix-hotspot cli --root --timezone UTC --wikifundi fr --zim-install wikipedia_fr_test.fr --size 16G
ls -lh ./hotspot-*.img || true