1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ branches :
7
+ - master
8
+
9
+ jobs :
10
+ haxelib :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - uses : krdlab/setup-haxe@v1
15
+ with :
16
+ haxe-version : 4.3.4
17
+ - name : Package Haxelib
18
+ working-directory : haxelib
19
+ run : haxe haxelib.hxml
20
+ - uses : actions/upload-artifact@v4
21
+ with :
22
+ name : feathersui-haxelib
23
+ path : bin/haxelib/
24
+ if-no-files-found : error
25
+ test-cli :
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - uses : actions/checkout@v4
29
+ - uses : krdlab/setup-haxe@v1
30
+ with :
31
+ haxe-version : 4.0.5
32
+ - name : Set up Haxelib dependencies
33
+ run : |
34
+ haxelib install lime 7.8.0 --quiet
35
+ haxelib install openfl 8.9.7 --quiet
36
+ haxelib install actuate --quiet
37
+ haxelib install hxargs --quiet
38
+ haxelib dev feathersui ${{ github.workspace }}
39
+ - name : Run CLI
40
+ run : |
41
+ haxelib run feathersui new-project MyProject
42
+ cd MyProject
43
+ haxelib run openfl build html5
44
+ - name : Run CLI (--vscode)
45
+ run : |
46
+ haxelib run feathersui new-project MyVSCodeProject --vscode
47
+ cd MyVSCodeProject
48
+ haxelib run openfl build html5
49
+ build-swc :
50
+ runs-on : ubuntu-latest
51
+ steps :
52
+ - uses : actions/checkout@v4
53
+ - uses : krdlab/setup-haxe@v1
54
+ with :
55
+ haxe-version : 4.0.5
56
+ - name : Set up Haxelib dependencies
57
+ run : |
58
+ haxelib install lime 7.8.0 --quiet
59
+ haxelib install openfl 8.9.7 --quiet
60
+ haxelib install actuate --quiet
61
+ haxelib dev feathersui ${{ github.workspace }}
62
+ - name : Build Flash .swc library
63
+ run : haxelib run openfl build flash -debug
64
+ - uses : actions/upload-artifact@v4
65
+ with :
66
+ name : feathersui-openfl-swc
67
+ path : bin/flash/bin/feathersui-openfl.swc
68
+ if-no-files-found : error
69
+ build-api :
70
+ runs-on : ubuntu-latest
71
+ steps :
72
+ - uses : actions/checkout@v4
73
+ - uses : krdlab/setup-haxe@v1
74
+ with :
75
+ haxe-version : 4.0.5
76
+ - name : Set up Haxelib dependencies
77
+ run : |
78
+ haxelib install lime 7.8.0 --quiet
79
+ haxelib install openfl 8.9.7 --quiet
80
+ haxelib install actuate --quiet
81
+ haxelib install dox --quiet
82
+ haxelib dev feathersui ${{ github.workspace }}
83
+ - name : Build API reference
84
+ working-directory : docs
85
+ run : haxe docs.hxml
86
+ - uses : actions/upload-artifact@v4
87
+ with :
88
+ name : feathersui-openfl-docs
89
+ path : bin/api/
90
+ if-no-files-found : error
91
+ - name : Deploy to unstable
92
+ if : ${{ github.repository == 'feathersui/feathersui-openfl' && github.event_name != 'pull_request' }}
93
+ uses : garygrossgarten/github-action-scp@release
94
+ with :
95
+ local : bin/api
96
+ remote : api.feathersui.com/unstable
97
+ host : ${{ secrets.SSH_HOST }}
98
+ username : ${{ secrets.SSH_USER }}
99
+ password : ${{ secrets.SSH_PASS }}
0 commit comments