-
Notifications
You must be signed in to change notification settings - Fork 263
41 lines (41 loc) · 1.47 KB
/
check-build-apps.yml
File metadata and controls
41 lines (41 loc) · 1.47 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
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
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
- name: Check Base Tools
run: |
cd ${{ github.workspace }}
. ./export.sh
tos.py version
tos.py check
rm -rf ${{ github.workspace }}/dist
- name: Check [switch_demo] Build
run: |
cd ${{ github.workspace }}
. ./export.sh
cd ${{ github.workspace }}/apps/tuya_cloud/switch_demo
tos.py dev bac -d ${{ github.workspace }}/dist
- name: Check [your_chat_bot] Build
run: |
cd ${{ github.workspace }}
. ./export.sh
cd ${{ github.workspace }}/apps/tuya.ai/your_chat_bot
tos.py dev bac -d ${{ github.workspace }}/dist
- name: Check [your_otto_robot] Build
run: |
cd ${{ github.workspace }}
. ./export.sh
cd ${{ github.workspace }}/apps/tuya.ai/your_otto_robot
tos.py dev bac -d ${{ github.workspace }}/dist
- run: echo "💡 This job's status is ${{ job.status }}."