-
-
Notifications
You must be signed in to change notification settings - Fork 23
152 lines (143 loc) · 7.85 KB
/
longse.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name: Longse to OpenIPC
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: setenv
run: |
TAG_NAME="herospeed"
RELEASE_NAME="OpenIPC Firmware"
PRERELEASE=true
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_ENV
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV
- name: Install dependencies
run: sudo apt-get update; sudo apt-get install u-boot-tools zip
- name: Checkout
uses: actions/[email protected]
- name: release-downloader
uses: robinraju/[email protected]
with:
repository: "OpenIPC/firmware"
tag: latest
fileName: "*u-boot*.bin"
out-file-path: ".github/workflows/workdir"
- name: Fetch OpenIPC release
run: |
mkdir -p "$GITHUB_WORKSPACE/.github/workflows/dl" ; cd "$_"
wget -q https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3516cv200-nor-lite.tgz
wget -q https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3518ev200-nor-lite.tgz
wget -q https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3516av100-nor-lite.tgz
wget -q https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3516dv100-nor-lite.tgz
wget -q https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3516cv300-nor-lite.tgz
wget -q https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3516ev100-nor-lite.tgz
wget -q https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3516dv200-nor-lite.tgz
wget -q https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3516ev200-nor-lite.tgz
wget -q https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3516ev300-nor-lite.tgz
wget -q https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3516av200-nor-lite.tgz
wget -q https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3519v101-nor-lite.tgz
wget -q https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3516cv500-nor-lite.tgz
wget -q https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3516av300-nor-lite.tgz
- name: Create firmwares
run: |
cd $GITHUB_WORKSPACE/.github/workflows
export RUN="$GITHUB_WORKSPACE/.github/workflows/_longse2oipc.sh"
export OUTPUTDIR="$GITHUB_WORKSPACE/out"
SOC="hi3516av100" NAME="HI3516A" SENSOR="IMX178" $RUN
SOC="hi3516av200" NAME="16AV200" SENSOR="08A10BD" $RUN
SOC="hi3516av200" NAME="16AV200" SENSOR="08A10FD" $RUN
SOC="hi3516av200" NAME="16AV200" SENSOR="08A10W" $RUN
SOC="hi3516av200" NAME="16aV200" SENSOR="IMX274" $RUN
SOC="hi3516av200" NAME="16aV200" SENSOR="IMX274B" $RUN
SOC="hi3516av200" NAME="16aV200" SENSOR="IMX326" $RUN
SOC="hi3516av300" NAME="16AV300" SENSOR="IMX415A" $RUN
SOC="hi3516av300" NAME="16AV300" SENSOR="IMX415b" $RUN
SOC="hi3516cv200" NAME="16CV200" SENSOR="IMX323" $RUN
SOC="hi3516cv200" NAME="16CV200" SENSOR="OV2718" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="290MINI" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="307AF" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="307FBD" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="307MINI" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="323AF" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="323BBD" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="323FBD" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="323WBD" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="327AF" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="327BD" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="327FBD" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="IMX290" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="IMX307k" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="IMX307P" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="IMX323" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="IMX323A" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="IMX323N" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="IMX323X" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="IMX327g" $RUN
SOC="hi3516cv300" NAME="16CV300" SENSOR="IMX327s" $RUN
SOC="hi3516cv500" NAME="16CV500" SENSOR="307" $RUN
SOC="hi3516cv500" NAME="16CV500" SENSOR="307AL" $RUN
SOC="hi3516cv500" NAME="16CV500" SENSOR="IMX307W" $RUN
SOC="hi3516cv500" NAME="16CV500" SENSOR="IMX462A" $RUN
SOC="hi3516cv500" NAME="16CV500" SENSOR="IMX462B" $RUN
SOC="hi3516cv500" NAME="16CV500" SENSOR="IMX462W" $RUN
SOC="hi3516dv100" NAME="16DBOX" SENSOR="05A10BD" $RUN
SOC="hi3516dv100" NAME="16DBOX" SENSOR="OS05A10" $RUN
SOC="hi3516dv100" NAME="16DFEM" SENSOR="IMX326" $RUN
SOC="hi3516dv100" NAME="16DSAF" SENSOR="05A10BD" $RUN
SOC="hi3516dv100" NAME="16DSAF" SENSOR="OS05A10" $RUN
SOC="hi3516dv100" NAME="16DSW" SENSOR="OS05A10" $RUN
SOC="hi3516dv100" NAME="16DWBD" SENSOR="OS05A10" $RUN
SOC="hi3516dv100" NAME="3516DFE" SENSOR="IMX326" $RUN
SOC="hi3516dv100" NAME="3516DSP" SENSOR="OV4689" $RUN
SOC="hi3516dv100" NAME="HI3516D" SENSOR="05A10BD" $RUN
SOC="hi3516dv100" NAME="HI3516D" SENSOR="326FEBD" $RUN
SOC="hi3516dv100" NAME="HI3516D" SENSOR="IMX123" $RUN
SOC="hi3516dv100" NAME="HI3516D" SENSOR="IMX291" $RUN
SOC="hi3516dv100" NAME="HI3516D" SENSOR="IMX335" $RUN
SOC="hi3516dv100" NAME="HI3516D" SENSOR="OS05A10" $RUN
SOC="hi3516dv100" NAME="HI3516D" SENSOR="OV4689" $RUN
SOC="hi3516dv200" NAME="16DV200" SENSOR="335AF10" $RUN
SOC="hi3516dv200" NAME="16DV200" SENSOR="335AF5" $RUN
SOC="hi3516dv200" NAME="16DV200" SENSOR="IMX335" $RUN
SOC="hi3516dv200" NAME="16DV200" SENSOR="IMX335W" $RUN
SOC="hi3516ev100" NAME="16EV100" SENSOR="F23" $RUN
SOC="hi3516ev100" NAME="16EV100" SENSOR="F23BD" $RUN
SOC="hi3516ev200" NAME="16EV200" SENSOR="307AF" $RUN
SOC="hi3516ev200" NAME="16EV200" SENSOR="F23" $RUN
SOC="hi3516ev200" NAME="16EV200" SENSOR="IMX307" $RUN
SOC="hi3518ev200" NAME="18EV200" SENSOR="IMX225" $RUN
SOC="hi3518ev200" NAME="18EV200" SENSOR="IMX323" $RUN
SOC="hi3518ev200" NAME="18EV200" SENSOR="OV9732" $RUN
SOC="hi3518ev200" NAME="18EV200" SENSOR="S3130" $RUN
# SOC="hi3519v100" NAME="19V100" SENSOR="IMX274" $RUN
SOC="hi3519v101" NAME="19V101" SENSOR="226AF" $RUN
SOC="hi3519v101" NAME="19V101" SENSOR="226BASE" $RUN
SOC="hi3519v101" NAME="19V101" SENSOR="226BOX" $RUN
SOC="hi3519v101" NAME="19V101" SENSOR="IMX226" $RUN
SOC="hi3519v101" NAME="19V101" SENSOR="IMX226B" $RUN
continue-on-error: true
- name: Create release
uses: actions/create-release@v1
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.TAG_NAME }}
release_name: ${{ env.RELEASE_NAME }}
body: |
Transition firmware for Longse/Herospeed boards
draft: false
prerelease: ${{ env.PRERELEASE }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: out/*
file_glob: true
tag: ${{ env.TAG_NAME }}
overwrite: true
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3