Skip to content

Commit

Permalink
Merge branch 'development' into module_resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Sep 25, 2023
2 parents 307c94c + 71c41a0 commit eb3ca18
Show file tree
Hide file tree
Showing 95 changed files with 830 additions and 451 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 10
command: choco install --no-progress nsis.portable --version 3.02 -y
command: choco install --no-progress nsis.portable --version 3.09 -y

- name: choco install things
shell: pwsh
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 10
command: choco install --no-progress nsis.portable --version 3.02 -y
command: choco install --no-progress nsis.portable --version 3.09 -y

- name: choco install things
shell: pwsh
Expand Down Expand Up @@ -259,6 +259,10 @@ jobs:
env:
PLATFORM: linux64
OPAMYES: 1
strategy:
fail-fast: false
matrix:
ocaml: ["4.08.1", "5.0.0"]
steps:
- uses: actions/checkout@main
with:
Expand All @@ -269,7 +273,7 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.opam/
key: ${{ runner.os }}-${{ hashFiles('./haxe.opam', './libs/') }}-2
key: ${{ runner.os }}-${{ matrix.ocaml }}-${{ hashFiles('./haxe.opam', './libs/') }}

- name: Install Neko from S3
run: |
Expand Down Expand Up @@ -303,6 +307,7 @@ jobs:
set -ex
opam init # --disable-sandboxing
opam update
opam switch create ${{ matrix.ocaml }}
opam pin add haxe . --no-action
opam install haxe --deps-only --assume-depexts
opam list
Expand Down Expand Up @@ -330,6 +335,7 @@ jobs:
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT

- name: Build xmldoc
if: matrix.ocaml == '4.08.1'
run: |
set -ex
make -s xmldoc
Expand All @@ -343,11 +349,12 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: linuxBinaries
name: linuxBinaries${{ (matrix.ocaml == '5.0.0' && '_ocaml5') || '' }}
path: out

- name: Upload xmldoc artifact
uses: actions/upload-artifact@v3
if: matrix.ocaml == '4.08.1'
with:
name: xmldoc
path: extra/doc
Expand All @@ -363,6 +370,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ocaml: ["4.08.1", "5.0.0"]
target: [macro, js, hl, cpp, 'java,jvm', cs, php, python, lua, flash, neko]
include:
- target: hl
Expand All @@ -379,7 +387,7 @@ jobs:
submodules: recursive
- uses: actions/download-artifact@v3
with:
name: linuxBinaries
name: linuxBinaries${{ (matrix.ocaml == '5.0.0' && '_ocaml5') || '' }}
path: linuxBinaries

- name: Install Neko from S3
Expand Down Expand Up @@ -586,7 +594,7 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.opam/
key: ${{ runner.os }}-${{ hashFiles('./haxe.opam', './libs/') }}-2
key: ${{ runner.os }}-${{ hashFiles('./haxe.opam', './libs/') }}

- name: Install Neko from S3
run: |
Expand All @@ -608,7 +616,7 @@ jobs:
- name: Install dependencies
env:
# For compatibility with macOS 10.13
ZLIB_VERSION: 1.2.13
ZLIB_VERSION: 1.3
MBEDTLS_VERSION: 2.25.0
PCRE2_VERSION: 10.42
run: |
Expand Down
3 changes: 3 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ devcontainer:
# Install OCaml libraries
COPY haxe.opam .
RUN opam init --disable-sandboxing
RUN opam switch create 4.08.1
RUN eval $(opam env)
RUN opam env
RUN opam install . --yes --deps-only --no-depexts
RUN opam list
RUN ocamlopt -v
Expand Down
27 changes: 27 additions & 0 deletions extra/CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
2023-09-01 4.3.2

General improvements:

all : do not raise error on no-op reification outside macro

Bugfixes:

all : don't infer Null<?> if it already is Null<?> (#11286)
all : fix ?? inference and precedence (#11252)
all : bring back forced inline (#11217)
all : allow non constant "inline" var init with -D no-inline (#11192)
all : improve @:enum abstract deprecation warning handling (#11302)
all : fix some stack overflow with pretty errors
display : fix go to definition with final (#11173)
display : fix completion requests with @:forwardStatics (#11294)
eval : fix MainLoop.add not repeating (#11202)
hl/eval/neko : fix exception stack when wrapping native exceptions (#11249)
macro : map `this` when restoring typed expressions (#11212)
macro : safe navigation fix for ExprTools.map (#11204)
macro : safe navigation fix for haxe.macro.Printer (#11206)
macro : macro generated EVars position fixes (#11163)
macro : fix abstract casts for local statics (#11301)
macro : add flags to TDAbstract to be able to construct enum abstracts (#11230)
nullsafety : make break/continue expressions not-nullable (#11269)
nullsafety : handle return in assignment (#11114)

2023-04-28 4.3.1

Breaking changes:
Expand Down
2 changes: 1 addition & 1 deletion extra/EnvVarUpdate.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
!ifndef Un${StrFuncName}_INCLUDED
${Un${StrFuncName}}
!endif
!define un.${StrFuncName} "${Un${StrFuncName}}"
!define un.${StrFuncName} '${Un${StrFuncName}}'
!macroend

!insertmacro _IncludeStrFunction StrTok
Expand Down
2 changes: 1 addition & 1 deletion extra/github-actions/build-mac.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- name: Install dependencies
env:
# For compatibility with macOS 10.13
ZLIB_VERSION: 1.2.13
ZLIB_VERSION: 1.3
MBEDTLS_VERSION: 2.25.0
PCRE2_VERSION: 10.42
run: |
Expand Down
6 changes: 0 additions & 6 deletions extra/github-actions/cache-opam-windows.yml

This file was deleted.

6 changes: 0 additions & 6 deletions extra/github-actions/cache-opam.yml

This file was deleted.

2 changes: 1 addition & 1 deletion extra/github-actions/install-nsis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
with:
timeout_minutes: 10
max_attempts: 10
command: choco install --no-progress nsis.portable --version 3.02 -y
command: choco install --no-progress nsis.portable --version 3.09 -y

- name: choco install things
shell: pwsh
Expand Down
28 changes: 24 additions & 4 deletions extra/github-actions/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,22 @@ jobs:
env:
PLATFORM: linux64
OPAMYES: 1
strategy:
fail-fast: false
matrix:
ocaml: ["4.08.1", "5.0.0"]
steps:
- uses: actions/checkout@main
with:
submodules: recursive

@import cache-opam.yml
- name: Cache opam
id: cache-opam
uses: actions/[email protected]
with:
path: ~/.opam/
key: ${{ runner.os }}-${{ matrix.ocaml }}-${{ hashFiles('./haxe.opam', './libs/') }}

@import install-neko-unix.yml

- name: Install dependencies
Expand All @@ -79,6 +89,7 @@ jobs:
set -ex
opam init # --disable-sandboxing
opam update
opam switch create ${{ matrix.ocaml }}
opam pin add haxe . --no-action
opam install haxe --deps-only --assume-depexts
opam list
Expand Down Expand Up @@ -106,6 +117,7 @@ jobs:
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT

- name: Build xmldoc
if: matrix.ocaml == '4.08.1'
run: |
set -ex
make -s xmldoc
Expand All @@ -119,11 +131,12 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: linuxBinaries
name: linuxBinaries${{ (matrix.ocaml == '5.0.0' && '_ocaml5') || '' }}
path: out

- name: Upload xmldoc artifact
uses: actions/upload-artifact@v3
if: matrix.ocaml == '4.08.1'
with:
name: xmldoc
path: extra/doc
Expand All @@ -139,6 +152,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ocaml: ["4.08.1", "5.0.0"]
target: [macro, js, hl, cpp, 'java,jvm', cs, php, python, lua, flash, neko]
include:
- target: hl
Expand All @@ -155,7 +169,7 @@ jobs:
submodules: recursive
- uses: actions/download-artifact@v3
with:
name: linuxBinaries
name: linuxBinaries${{ (matrix.ocaml == '5.0.0' && '_ocaml5') || '' }}
path: linuxBinaries

@import install-neko-unix.yml
Expand Down Expand Up @@ -325,7 +339,13 @@ jobs:
with:
submodules: recursive

@import cache-opam.yml
- name: Cache opam
id: cache-opam
uses: actions/[email protected]
with:
path: ~/.opam/
key: ${{ runner.os }}-${{ hashFiles('./haxe.opam', './libs/') }}

@import install-neko-unix.yml
@import build-mac.yml

Expand Down
6 changes: 4 additions & 2 deletions haxe.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ build: [
install: [make "install" "INSTALL_DIR=%{prefix}%"]
remove: [make "uninstall" "INSTALL_DIR=%{prefix}%"]
depends: [
"ocaml" {>= "4.08"}
("ocaml" {>= "5.0"} & ("camlp5" {build}))
| ("ocaml" {>= "4.08" & < "5.0"} & ("camlp5" {build & = "8.00"}))
"ocamlfind" {build}
"dune" {>= "1.11"}
"camlp5" {build & = "8.00"}
"sedlex" {>= "2.0"}
"xml-light"
"extlib" {>= "1.7.8"}
"sha"
"camlp-streams"
"conf-libpcre2-8"
"conf-zlib"
"conf-neko"
"luv" {>= "0.5.12"}
"ipaddr"
]
Loading

0 comments on commit eb3ca18

Please sign in to comment.