-
Notifications
You must be signed in to change notification settings - Fork 2
75 lines (63 loc) · 1.77 KB
/
test-neko.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
name: Test neko
on:
push:
branches: [master, dev]
pull_request:
jobs:
test-neko:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Adjust path (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
if [[ -z "$GITHUB_PATH" ]]; then
echo "${HOME}/.local/bin" >> $GITHUB_PATH
fi
- name: Update apt and install necessary packages (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
if ! command -v sudo &> /dev/null; then
apt install sudo
fi
sudo apt update
sudo apt-get install -y software-properties-common
- name: Install Haxe (4.2.5)
uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.2.5
- name: Checkout ammer-core
uses: actions/checkout@v2
with:
path: "ammer-core"
- name: Set up haxelibs
shell: bash
run: |
haxelib dev ammer-core ammer-core
- name: Set up MSVC (Windows)
if: matrix.os == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1
- name: Compile tests
shell: bash
run: |
cd ammer-core/test
haxe -D ammercoretest.neko.includepaths="$NEKOPATH/include" -D ammercoretest.neko.librarypaths="$NEKOPATH" build/build-neko.hxml
- name: Run tests (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
cd ammer-core/test
test/test-neko-linux.sh
- name: Run tests (macOS)
if: matrix.os == 'macos-latest'
run: |
cd ammer-core/test
test/test-neko-macos.sh
- name: Run tests (Windows)
if: matrix.os == 'windows-latest'
shell: bash
run: |
cd ammer-core/test
test/test-neko-windows.sh