-
Notifications
You must be signed in to change notification settings - Fork 30
48 lines (39 loc) · 1.08 KB
/
main-vanilla.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
name: CI - Vanilla
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
# TODO: fix tests on windows and enable again
# os: [ubuntu-latest, macos-13, windows-latest]
os: [ubuntu-latest, macos-13]
haxe: [latest, "2024-11-27_development_2dc801f"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: krdlab/setup-haxe@master
with:
haxe-version: ${{ matrix.haxe }}
- name: Cache haxelib
id: cache-haxelib
uses: actions/cache@v3.0.11
with:
path: .haxelib
key: ${{ hashFiles('./install.hxml') }}
- name: Install npm dependencies
run: |
npm ci --ignore-scripts
- name: Install haxelib dependencies
if: steps.cache-haxelib.outputs.cache-hit != 'true'
run: |
haxelib newrepo
haxelib state load install.hxml
- name: Check dependencies
run: |
haxe -version
haxelib list
- name: Build Haxe LSP
run: haxe build.hxml
- name: Run tests
run: haxe test.hxml