-
-
Notifications
You must be signed in to change notification settings - Fork 24
45 lines (44 loc) · 2.11 KB
/
autobuildonissue.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
name: issue
on:
issue_comment:
types: [created, edited]
issues:
types: [opened, edited, deleted]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
ref: gh-pages
path: gh-pages
- name: Download sdk
uses: suisei-cn/actions-download-file@v1
id: downloadfile # Remember to give an ID if you need the output
with:
url: "http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/lastSuccessfulBuild/artifact/out/apache-royale-0.9.8-bin-js.zip"
target: sdk/
- name: tar
id: tar
run: |
$rootpath=$(get-location).path
$sdk=$rootpath+"/sdk/royale-asjs"
$thirdParty=$rootpath+"/examples\thirdParty"
cd sdk
tar -x -f 'apache-royale-0.9.8-bin-js.zip'
cd ..
cd gh-pages
cd auto
python main.py
$className = Get-Content ${{ github.event.comment.id }}/main.txt -Raw
echo className=$className
$cmd="$sdk/js/bin/asjsc.bat ${{ github.event.comment.id }}\$className.as -js-output-optimization=skipAsCoercions -library-path+=$sdk\frameworks\js\libs\CoreJS.swc -library-path+=$sdk\frameworks\js\libs\XMLJS.swc -library-path+=$sdk\js\libs\js.swc -source-path+=$rootpath\src -source-path+=${{ github.event.comment.id }} -source-path+=$thirdParty\adobe -source-path+=$thirdParty\box2dflash -source-path+=$thirdParty\MornUILib\src -source-path+=$thirdParty\protebuff -source-path+=$thirdParty\utils -source-path+=$thirdParty\MornUIDemo\src -source-path+=$thirdParty\MinimalComps_0_9_10 -warn-public-vars=false -remove-circulars=true -js-compiler-option+='--compilation_level ADVANCED_OPTIMIZATIONS' -targets=JSRoyale -define=CONFIG::as_only,false -define=CONFIG::js_only,true -define=COMPILE::JS,true -warnings=false -o ."
echo $cmd
iex $cmd
cd ..
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "generated"
git push