Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 2f1a730

Browse files
committed
Fixes & Prep
* Fix break keyword * Remove all instances of Dynamic. Replaced necessary ones with Any. I tried to make an enum implementation of instructions but it seems it just won't work. * Remove all uses of ``sys`` in prep for #7 * Fixed assertType in parser not calling nextToken * Add ``compiletime`` as a dependency
1 parent 97af8f6 commit 2f1a730

18 files changed

Lines changed: 2309 additions & 301 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy Demo
2+
3+
# Controls when the action will run.
4+
on:
5+
# Only run on commits from master branch
6+
push:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
# The type of runner that the job will run on
12+
runs-on: ubuntu-latest
13+
14+
# Steps represent a sequence of tasks that will be executed as part of the job
15+
steps:
16+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
17+
- uses: actions/checkout@v2
18+
19+
- name: Setup Haxe & Haxelib
20+
uses: krdlab/setup-haxe@v1
21+
with:
22+
haxe-version: 4.2.0
23+
24+
- name: Get Haxe Deps
25+
run: |
26+
haxelib install iterators
27+
haxelib install haxe-strings
28+
haxelib install safety
29+
haxelib install compiletime
30+
31+
# Build haxe code to javascript
32+
- name: Build
33+
run: |
34+
haxe -version
35+
haxe deploy.hxml
36+
37+
- name: Move files to output folder
38+
run: |
39+
mkdir demo
40+
mv bin/out.js demo
41+
42+
- name: Deploy to gh-pages branch
43+
uses: peaceiris/actions-gh-pages@v3
44+
with:
45+
github_token: ${{ secrets.GITHUB_TOKEN }}
46+
publish_dir: ./demo
47+
user_name: 'github-actions[bot]'
48+
user_email: 'github-actions[bot]@users.noreply.github.com'
49+
commit_message: ${{ github.event.head_commit.message }}
50+
keep_files: true # Don't overwrite everything
51+
disable_nojekyll: true # Don't make a .nojekyll file

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
haxelib install iterators
3232
haxelib install haxe-strings
3333
haxelib install safety
34+
haxelib install compiletime
3435
3536
- name: Run tests
3637
run: haxe test.hxml

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/bin/
22
.unittest
3-
/out/
3+
/out/
4+
/dump/
5+
/demo/

build.hxml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
--library iterators
55
--library haxe-strings
66
--library safety
7+
--library compiletime
78

89
--class-path src
910
--main Main
1011

1112
--cpp bin/cpp
13+
#--hl bin/out.hl
1214

1315
# Can also do other targets

deploy.hxml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--dce full
2+
3+
--library iterators
4+
--library haxe-strings
5+
--library safety
6+
--library compiletime
7+
8+
--class-path src
9+
--main Main
10+
11+
--js bin/out.js

0 commit comments

Comments
 (0)