-
Notifications
You must be signed in to change notification settings - Fork 23
73 lines (70 loc) · 1.97 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
name: CI
on:
push:
# This should disable running the workflow on tags
branches:
- "**"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: krdlab/setup-haxe@v1
- name: Print haxe version
run: haxe -version
- name: Install haxelib dependencies
run: |
haxelib git format https://github.com/HaxeFoundation/format.git
haxelib git hscript https://github.com/HaxeFoundation/hscript.git
haxelib install vshaxe
haxelib install vscode
haxelib install vscode-debugadapter
- name: Build extension
run: make build
- name: Build standalone adapter.js
run: haxe build.hxml
- name: Build CLI hl
run: |
cd debugger
haxe debugger.hxml
cd ..
build_and_test_nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: krdlab/setup-haxe@v1
with:
haxe-version: latest
- name: Print haxe version
run: haxe -version
- name: Install haxelib dependencies
run: |
haxelib git format https://github.com/HaxeFoundation/format.git
haxelib git hscript https://github.com/HaxeFoundation/hscript.git
haxelib install vshaxe
haxelib install vscode
haxelib install vscode-debugadapter
- name: Build extension
run: make build
- name: Build standalone adapter.js
run: haxe build.hxml
- name: Build CLI hl
run: |
cd debugger
haxe debugger.hxml
cd ..
- name: Install hl
run: |
git clone https://github.com/HaxeFoundation/hashlink.git hashlink
sudo apt-get install -qqy libpng-dev libturbojpeg-dev libvorbis-dev libopenal-dev libsdl2-dev libglu1-mesa-dev libmbedtls-dev libuv1-dev libsqlite3-dev
cd hashlink
make
sudo make install
hl --version
cd ..
- name: Run tests
run: |
cd tests
haxe RunCi.hxml
cd ..