1111 - cron : ' 15 23 * * *'
1212
1313jobs :
14- haxe4-rc5 :
15- env :
16- CC_TEST_REPORTER_ID : 1dff6f89d7179dff5db635c6b4fe64acdd5694c9ed44d7da5f12f0f7d3d163b7
14+ build :
1715 runs-on : ubuntu-latest
16+ strategy :
17+ matrix :
18+ haxe-version : ['3.4.7', '4.0.0-rc.5', 'nightly']
19+ env :
20+ CC_TEST_REPORTER_ID : 1dff6f89d7179dff5db635c6b4fe64acdd5694c9ed44d7da5f12f0f7d3d163b7
1821 steps :
1922 - uses : actions/checkout@v1
2023 - name : Use Node.js 10
2124 uses : actions/setup-node@v1
2225 with :
2326 node-version : 10
2427 - name : Installing codeclimate client
28+ if : haxe-version == '4.0.0-rc.5'
2529 run : |
2630 curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
2731 chmod +x ./cc-test-reporter
2832 ./cc-test-reporter before-build
2933 - name : NPM install
3034 run : npm ci
31- - name : Prepare Haxe 4.0.0-rc.5
35+ - name : Install Haxe version ${{ haxe-version }}
36+ run : |
37+ npx lix download haxe ${{ haxe-version }}
38+ npx lix use haxe ${{ haxe-version }}
39+ - name : Prepare Haxe 3 dependencies
40+ if : haxe-version == '3.4.7'
3241 run : |
33- npx lix download haxe 4.0.0-rc.5
34- npx lix use haxe 4.0.0-rc.5
42+ mv haxe_libraries haxe4_libraries
43+ mv haxe3_libraries haxe_libraries
3544 - name : Lix download
3645 run : npx lix download
3746 - name : Print versions
@@ -56,91 +65,13 @@ jobs:
5665 - name : Run Java tests
5766 run : npx haxe testJava.hxml
5867 - name : Format and upload codeclimate coverage
59- if : success()
68+ if : success() && haxe-version == '4.0.0-rc.5'
6069 run : |
6170 ( \
6271 cd src; \
6372 ../cc-test-reporter format-coverage -t lcov ../lcov.info; \
6473 ../cc-test-reporter upload-coverage; \
6574 )
6675 - name : Upload results to codecov
67- if : success()
76+ if : success() && haxe-version == '4.0.0-rc.5'
6877 run : bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
69-
70- haxe4-nightly :
71- runs-on : ubuntu-latest
72- steps :
73- - uses : actions/checkout@v1
74- - name : Use Node.js 10
75- uses : actions/setup-node@v1
76- with :
77- node-version : 10
78- - name : NPM install
79- run : npm ci
80- - name : Prepare Haxe 4 nightly
81- run : |
82- npx lix download haxe nightly
83- npx lix use haxe nightly
84- - name : Lix download
85- run : npx lix download
86- - name : Print versions
87- run : |
88- npx haxe -version
89- npx neko -version
90- npx haxelib list
91- - name : Build neko versions
92- run : |
93- npx haxe build.hxml
94- npx haxe buildDebug.hxml
95- - name : Build NodeJs version
96- run : npx haxe buildJS.hxml
97- - name : Build C++ version
98- run : npx haxe buildCpp.hxml
99- - name : Build JSON schema
100- run : npx haxe buildSchema.hxml
101- - name : Build JSON schema
102- run : npx haxe buildSchema.hxml
103- - name : Run eval tests
104- run : npx haxe -D codecov_json buildTest.hxml
105- - name : Run Java tests
106- run : npx haxe testJava.hxml
107-
108- haxe347 :
109- runs-on : ubuntu-latest
110- steps :
111- - uses : actions/checkout@v1
112- - name : Use Node.js 10
113- uses : actions/setup-node@v1
114- with :
115- node-version : 10
116- - name : NPM install
117- run : npm ci
118- - name : Prepare Haxe 3.4.7
119- run : |
120- npx lix download haxe 3.4.7
121- npx lix use haxe 3.4.7
122- mv haxe_libraries haxe4_libraries
123- mv haxe3_libraries haxe_libraries
124- - name : Lix download
125- run : npx lix download
126- - name : Print versions
127- run : |
128- npx haxe -version
129- npx neko -version
130- npx haxelib list
131- - name : Build neko versions
132- run : |
133- npx haxe build.hxml
134- npx haxe buildDebug.hxml
135- - name : Build NodeJs version
136- run : npx haxe buildJS.hxml
137- - name : Build C++ version
138- run : npx haxe buildCpp.hxml
139- - name : Build JSON schema
140- run : npx haxe buildSchema.hxml
141- - name : Build JSON schema
142- run : npx haxe buildSchema.hxml
143- - name : Run neko tests
144- run : npx haxe -D codecov_json buildTest.hxml
145- - name : Run Java tests
146- run : npx haxe testJava.hxml
0 commit comments