-
Notifications
You must be signed in to change notification settings - Fork 264
69 lines (69 loc) · 2.49 KB
/
check-build-apps.yml
File metadata and controls
69 lines (69 loc) · 2.49 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
62
63
64
65
66
67
68
69
name: TuyaOpen Check Build
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on:
pull_request:
branches:
- master # 当分支有提交时执行此工作流
- dev
jobs:
Build-Switch-Demo:
runs-on: self-hosted
env:
OPEN_COUNTRY_CODE: "NONE"
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 Running on a ${{ runner.os }}, branch is ${{ github.ref }} !"
- name: Check out repository code
uses: actions/checkout@v4
with:
show-progress: false
- name: Check Base Tools
run: |
echo "::group::Checking base tools"
cd ${{ github.workspace }}
. ./export.sh
tos.py version
tos.py check
rm -rf ${{ github.workspace }}/dist
echo "::endgroup::"
- name: Check [switch_demo] Build
run: |
echo "::group::Building switch_demo"
cd ${{ github.workspace }}
. ./export.sh
cd ${{ github.workspace }}/apps/tuya_cloud/switch_demo
tos.py dev bac -d ${{ github.workspace }}/dist
echo "::endgroup::"
- name: Check [your_chat_bot] Build
run: |
echo "::group::Building your_chat_bot"
cd ${{ github.workspace }}
. ./export.sh
cd ${{ github.workspace }}/apps/tuya.ai/your_chat_bot
tos.py dev bac -d ${{ github.workspace }}/dist
echo "::endgroup::"
- name: Check [your_otto_robot] Build
run: |
echo "::group::Building your_otto_robot"
cd ${{ github.workspace }}
. ./export.sh
cd ${{ github.workspace }}/apps/tuya.ai/your_otto_robot
tos.py dev bac -d ${{ github.workspace }}/dist
echo "::endgroup::"
- name: Check [camera_demo] Build
run: |
echo "::group::Building camera_demo"
cd ${{ github.workspace }}
. ./export.sh
cd ${{ github.workspace }}/apps/tuya_cloud/camera_demo
tos.py dev bac -d ${{ github.workspace }}/dist
echo "::endgroup::"
- name: Check [weather_get_demo] Build
run: |
echo "::group::Building weather_get_demo"
cd ${{ github.workspace }}
. ./export.sh
cd ${{ github.workspace }}/apps/tuya_cloud/weather_get_demo
tos.py dev bac -d ${{ github.workspace }}/dist
echo "::endgroup::"
- run: echo "💡 This job's status is ${{ job.status }}."