Skip to content

Commit 1878d16

Browse files
committed
Release Version 2.0
1 parent 84e3903 commit 1878d16

31 files changed

+2433
-1322
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: "Run Haxe test/Test.hxml"
2+
description: "Runs Haxe test/Test.hxml on JS, C++, and HashLink"
3+
4+
inputs:
5+
haxe-version:
6+
required: true
7+
description: "The version of the Haxe compiler to use."
8+
9+
runs:
10+
using: "composite"
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Install Haxe
16+
uses: krdlab/setup-haxe@v1
17+
with:
18+
haxe-version: ${{ inputs.haxe-version }}
19+
20+
- name: Check Haxe
21+
run: haxe -version
22+
shell: bash
23+
24+
# -------------------------------------------
25+
# JavaScript
26+
27+
- name: Install Node
28+
uses: actions/setup-node@v4
29+
30+
- name: Check Node
31+
run: node -v
32+
shell: bash
33+
34+
- name: Compile Test for JS
35+
run: haxe Test.hxml -js Test.js
36+
working-directory: test
37+
shell: bash
38+
39+
- name: Test JS
40+
run: node Test.js
41+
working-directory: test
42+
shell: bash
43+
44+
# -------------------------------------------
45+
# C++
46+
47+
- name: Setup Hxcpp
48+
run: haxelib install hxcpp
49+
shell: bash
50+
51+
- name: Compile Test for C++
52+
run: haxe Test.hxml -cpp bin
53+
working-directory: test
54+
shell: bash
55+
56+
- name: Test C++
57+
run: ./bin/Test
58+
working-directory: test
59+
shell: bash
60+
61+
# -------------------------------------------
62+
# HashLink
63+
64+
- name: Setup HashLink
65+
uses: cedx/[email protected]
66+
67+
- name: Compile Test for HashLink
68+
run: haxe Test.hxml -hl Test.hl
69+
working-directory: test
70+
shell: bash
71+
72+
- name: Test HashLink
73+
run: hl Test.hl
74+
working-directory: test
75+
shell: bash
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Submit to Haxelib"
2+
on: workflow_dispatch
3+
4+
jobs:
5+
haxelib_submit:
6+
name: Publish to Haxelib
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
12+
- name: Install Haxe
13+
uses: krdlab/setup-haxe@v1
14+
with:
15+
haxe-version: latest
16+
17+
- name: ZIP Haxelib Project
18+
uses: edgarrc/action-7z@v1
19+
with:
20+
args: 7z a magic-array-tools.zip src/* LICENSE haxelib.json
21+
22+
- name: Submit to Haxelib
23+
run: |
24+
haxe -version
25+
haxelib submit magic-array-tools.zip ${{ secrets.HAXELIB_PASSWORD }} --always
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/run_devenv.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build_ubuntu:
11+
runs-on: ubuntu-latest
12+
name: Run Haxe DevEnv.hxml (checks null-safety)
13+
steps:
14+
- uses: krdlab/setup-haxe@v1
15+
with:
16+
haxe-version: latest
17+
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Install & Check Haxe
22+
run: haxe -version
23+
24+
- name: Test Dev. Environment
25+
run: haxe DevEnv.hxml

.github/workflows/run_test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
haxe_4:
11+
runs-on: ubuntu-latest
12+
name: Run Haxe (4.3.7) test/Test.hxml (on js, cpp, and hl)
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- uses: ./.github/actions/run_test
18+
with:
19+
haxe-version: 4.3.7
20+
21+
haxe_latest:
22+
runs-on: ubuntu-latest
23+
name: Run Haxe (latest) test/Test.hxml (on js, cpp, and hl)
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- uses: ./.github/actions/run_test
29+
with:
30+
haxe-version: latest

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
test/Test.js
21
magic-array-tools.zip

DevEnv.hxml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-D mat_runtime
2+
--macro nullSafety("mat")
3+
--macro nullSafety("MagicArrayTools")
4+
5+
-cp src
6+
7+
MagicArrayTools
8+
mat

0 commit comments

Comments
 (0)