-
Notifications
You must be signed in to change notification settings - Fork 37
145 lines (117 loc) · 3.72 KB
/
main.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: CI
on: [push, pull_request]
jobs:
package-haxelib:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/upload-artifact@v3
with:
name: away3d-haxelib
path: |
./
!scripts/
!haxe-*-*/
!neko-*-*/
!.git/
if-no-files-found: error
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.2.5
- name: Set HAXEPATH
run: |
echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
- name: Install Haxe dependencies
run: |
haxelib install lime --quiet
haxelib install openfl --quiet
haxelib install dox --quiet
haxelib dev away3d $GITHUB_WORKSPACE
- name: Build docs
working-directory: scripts
run: |
haxe docs.hxml
- uses: actions/upload-artifact@v3
with:
name: away3d-docs
path: docs
if-no-files-found: error
neko-samples:
needs: package-haxelib
runs-on: ubuntu-latest
steps:
- uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.2.5
- name: Set HAXEPATH
run: |
echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
- name: Install Haxe dependencies
run: |
haxelib install lime --quiet
haxelib install openfl --quiet
haxelib install actuate --quiet
haxelib git away3d-samples https://github.com/openfl/away3d-samples --quiet
- uses: actions/download-artifact@v3
with:
name: away3d-haxelib
path: away3d-haxelib
- name: Prepare away3d
run: |
haxelib dev away3d away3d-haxelib
haxelib run lime setup -alias -y
haxelib run openfl setup -alias -y
- name: Create Away3D samples
run: |
openfl create away3d:Particles -verbose -nocolor
openfl create away3d:Tweening3D -verbose -nocolor
- name: Build Away3D samples
run: |
lime build Particles neko -release -verbose -nocolor
lime build Tweening3D neko -release -verbose -nocolor
samples:
needs: package-haxelib
runs-on: ubuntu-latest
steps:
- uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.2.5
- name: Set HAXEPATH
run: |
echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
- name: Install Haxe dependencies
run: |
haxelib install lime --quiet
haxelib install openfl --quiet
haxelib install actuate --quiet
haxelib install openfl-samples --quiet
haxelib git away3d-samples https://github.com/openfl/away3d-samples --quiet
- uses: actions/download-artifact@v3
with:
name: away3d-haxelib
path: away3d-haxelib
- name: Prepare away3d
run: |
haxelib dev away3d away3d-haxelib
- name: Create Away3D samples
run: |
haxelib run openfl create away3d:Particles samples/basic/Particles -verbose -nocolor
haxelib run openfl create away3d:Tweening3D samples/basic/Tweening3D -verbose -nocolor
- name: Build Particles sample
working-directory: samples/basic/Particles
run: |
haxelib run lime build html5
haxelib run lime build neko
haxelib run lime build hl
haxelib run lime build flash
- name: Build Tweening3D sample
working-directory: samples/basic/Tweening3D
run: |
haxelib run lime build html5
haxelib run lime build neko
haxelib run lime build hl
haxelib run lime build flash