-
-
Notifications
You must be signed in to change notification settings - Fork 23
68 lines (59 loc) · 1.98 KB
/
master.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
66
67
68
name: Build
on:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
jobs:
buildroot:
name: Firmware
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- hi3518ev200_lite_smartwares-cip-37210
- hi3518ev200_lite_switcam-hs303
- hi3518ev200_lite_switcam-hs303-v2
- hi3518ev200_lite_qtech-qvc-ipc-136w
- ssc30kd_lite_chinatelecom-ds-ytj5301
- ssc325de_lite_imou-c22ep-s2
- ssc333_lite_meari-speed-6s
- ssc333_lite_tp-link-tapo-c110-v2
- ssc335_lite_tp-link-tapo-c110-v1
- ssc335_lite_trassir-tr-w2c1-v2
- ssc335de_lite_uniview-c1l-2wn-g
- t21_lite_wansview-q5-1080p
- t31_lite_xiaomi-mjsxj03hl
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare
run: |
echo "8.8.8.8 invisible-mirror.net" | sudo tee -a /etc/hosts
echo "8.8.8.8 distfiles.dereferenced.org" | sudo tee -a /etc/hosts
git clone https://github.com/openipc/firmware --depth 1
- name: Build
run: |
export GIT_HASH=$(git rev-parse --short ${GITHUB_SHA})
export GIT_BRANCH=${GITHUB_REF_NAME}
NAME=${{matrix.platform}}
cp -rf devices/${NAME}/* firmware
cd firmware
make BOARD=${NAME} all
NORFW=$(find output/images -name openipc*nor*)
if [ ! -z ${NORFW} ]; then
mv ${NORFW} ../${NAME}-nor.tgz
echo NORFW=${GITHUB_WORKSPACE}/${NAME}-nor.tgz >> ${GITHUB_ENV}
fi
NANDFW=$(find output/images -name openipc*nand*)
if [ ! -z ${NANDFW} ]; then
mv ${NANDFW} ../${NAME}-nand.tgz
echo NANDFW=${GITHUB_WORKSPACE}/${NAME}-nand.tgz >> ${GITHUB_ENV}
fi
- name: Upload
uses: softprops/action-gh-release@v1
with:
tag_name: latest
files: |
${{env.NORFW}}
${{env.NANDFW}}