-
Notifications
You must be signed in to change notification settings - Fork 5
70 lines (63 loc) · 1.7 KB
/
ci-test.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
name: CI
on: [push, pull_request]
jobs:
test-win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: "setup"
run: |
npm install -g lix
- name: "installing"
run: |
cd test/unit/
lix download haxe latest
lix download
- name: "testing"
run: |
cd test/unit
echo "Testing latest (via lix)"
lix use haxe latest
haxe build-library.hxml
cl .\app.c /I .\haxe-bin\ /Zi /link .\haxe-bin\obj\lib\Main-debug.lib /DEBUG
copy haxe-bin\Main-debug.dll Main-debug.dll
./app.exe
env:
CI: true
test-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: "setup"
run: |
npm install -g lix
- name: "installing"
run: |
cd test/unit/
lix download haxe 4.0.5
lix download haxe latest
lix download haxe nightly
lix download
- name: "testing"
run: |
cd test/unit
echo "Testing 4.0.5"
lix use haxe 4.0.5
./run.mac.sh
echo "Testing latest (via lix)"
lix use haxe latest
./run.mac.sh
echo "Testing nightly (via lix)"
lix use haxe nightly
./run.mac.sh
env:
CI: true