Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
name: Build

on:
push:
branches:
- master
- dev
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- windows-latest
haxe:
- latest

steps:
- name: Git Checkout
uses: actions/checkout@v2 #https://github.com/actions/checkout

- name: "Cache Haxelib Repository"
uses: actions/cache@v4
with:
path: .haxelib
key: ${{ runner.os }}-haxelib-${{ hashFiles('**/haxelib.json') }}
restore-keys: |
${{ runner.os }}-haxelib-

- name: Install Haxe ${{ matrix.haxe }}
uses: krdlab/setup-haxe@v1 # https://github.com/krdlab/setup-haxe
with:
haxe-version: ${{ matrix.haxe }}

- name: Install haxe libs
shell: bash
id: prerequisites
run: |
haxelib newrepo
haxelib install utest

- name: Run tests
shell: bash
run: |
haxe test.hxml
19 changes: 10 additions & 9 deletions test.hxml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
-cp src
-main olib.tests.Main
--interp
#-hl bin/out.hl

-hl bin/out.hl

-D debug
-D hscriptPos
-D windowFixed=1
-D message-reporting=pretty
-D hl-check
#-D debug
#-D hscriptPos
#-D windowFixed=1
#-D message-reporting=pretty
#-D hl-check
-D UTEST_PRINT_TESTS
-D no-deprecation-warnings

-L utest
#-L heaps
#-L json2object
#-L hlsdl
-L hscript
-L olib_model
#-L hscript
#-L olib_model
#-L olib_semver