-
Notifications
You must be signed in to change notification settings - Fork 15
61 lines (54 loc) · 1.82 KB
/
terra.yml
File metadata and controls
61 lines (54 loc) · 1.82 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
name: Generate codes and create pull request
on:
workflow_dispatch:
inputs:
rtc_version:
description: 'verison (4.5.2)'
required: true
type: string
jobs:
generate-codes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup
uses: ./.github/setup
- name: Replace rtc version
run: python ASDK.py -agorasdk=${{ inputs.rtc_version }}
- name: Generate code and comment by terra
uses: AgoraIO-Extensions/actions/.github/actions/generate@main
with:
working-directory: "Terra"
github-token: ${{ secrets.GH_TOKEN }}
generate-code: true
generate-comment: false
generate-code-command: |
mkdir -p packages/cpp
mkdir -p packages/blueprint
bash build.sh
bash finalstep.sh
- name: Create pull request
uses: AgoraIO-Extensions/actions/.github/actions/pr@main
with:
github-token: ${{ secrets.GH_TOKEN }}
target-repo: ${{ github.workspace }}
target-branch: ${{ github.ref_name }}
target-branch-name-surffix: terra-update/${{ inputs.rtc_version }}
pull-request-title: |
[AUTO] Generate codes by terra(${{ inputs.rtc_version }})
add-paths: .
# - name: Check csharp codes compile
# run: |
# cd Agora-C_Sharp_RTC-SDK_UT
# dotnet restore Agora_C_Sharp_SDK_UT.sln
# dotnet build Agora_C_Sharp_SDK_UT.sln --configuration Release
# if [ $? -ne 0 ]; then
# echo "csharp codes compile error"
# exit 1
# else
# echo "csharp codes compile success"
# fi