Skip to content

Commit 028c0c2

Browse files
committed
Release Version 2.0
1 parent 84e3903 commit 028c0c2

32 files changed

+2476
-1322
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: "Run Haxe test/Test.hxml"
2+
description: "Runs Haxe test/Test.hxml on JS, C++, and HashLink"
3+
inputs:
4+
haxe-version:
5+
required: true
6+
description: "The version of the Haxe compiler to use."
7+
8+
runs:
9+
using: "composite"
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Install Haxe
15+
uses: krdlab/setup-haxe@v1
16+
with:
17+
haxe-version: ${{ inputs.haxe-version }}
18+
19+
- name: Check Haxe
20+
run: haxe -version
21+
22+
# -------------------------------------------
23+
# JavaScript
24+
25+
- name: Install Node
26+
uses: actions/setup-node@v4
27+
28+
- name: Check Node
29+
uses: actions/setup-node@v4
30+
31+
- name: Compile Test for JS
32+
run: haxe Test.hxml -js Test.js
33+
working-directory: test
34+
35+
- name: Test JS
36+
run: node Test.js
37+
working-directory: test
38+
39+
# -------------------------------------------
40+
# C++
41+
42+
- name: Compile Test for C++
43+
run: haxe Test.hxml -cpp bin
44+
working-directory: test
45+
46+
- name: Test C++
47+
run: bin/Test
48+
working-directory: test
49+
50+
# -------------------------------------------
51+
# HashLink
52+
53+
- name: Setup HashLink
54+
uses: cedx/[email protected]
55+
56+
- name: Compile Test for HashLink
57+
run: haxe Test.hxml -hl Test.hl
58+
working-directory: test
59+
60+
- name: Test HashLink
61+
run: hl Test.hl
62+
working-directory: test
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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
- uses: ./.github/actions/run_test
15+
with:
16+
haxe-version: 4.3.7
17+
18+
haxe_latest:
19+
runs-on: ubuntu-latest
20+
name: Run Haxe (latest) test/Test.hxml (on js, cpp, and hl)
21+
steps:
22+
- uses: ./.github/actions/run_test
23+
with:
24+
haxe-version: latest
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: "Run Haxe test/Test.hxml"
2+
description: "Runs Haxe test/Test.hxml on JS, C++, and HashLink"
3+
inputs:
4+
haxe-version:
5+
required: true
6+
description: "The version of the Haxe compiler to use."
7+
8+
runs:
9+
using: "composite"
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Install Haxe
15+
uses: krdlab/setup-haxe@v1
16+
with:
17+
haxe-version: ${{ inputs.haxe-version }}
18+
19+
- name: Check Haxe
20+
run: haxe -version
21+
22+
# -------------------------------------------
23+
# JavaScript
24+
25+
- name: Install Node
26+
uses: actions/setup-node@v4
27+
28+
- name: Check Node
29+
uses: actions/setup-node@v4
30+
31+
- name: Compile Test for JS
32+
run: haxe Test.hxml -js Test.js
33+
working-directory: test
34+
35+
- name: Test JS
36+
run: node Test.js
37+
working-directory: test
38+
39+
# -------------------------------------------
40+
# C++
41+
42+
- name: Compile Test for C++
43+
run: haxe Test.hxml -cpp bin
44+
working-directory: test
45+
46+
- name: Test C++
47+
run: bin/Test
48+
working-directory: test
49+
50+
# -------------------------------------------
51+
# HashLink
52+
53+
- name: Setup HashLink
54+
uses: cedx/[email protected]
55+
56+
- name: Compile Test for HashLink
57+
run: haxe Test.hxml -hl Test.hl
58+
working-directory: test
59+
60+
- name: Test HashLink
61+
run: hl Test.hl
62+
working-directory: test

.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)