forked from HaxeFoundation/haxe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OCaml 5.0 compatibility (HaxeFoundation#11272)
* OCaml 5 compatibility * [eval] Disable StdThread.kill which has been removed in ocaml 5 * [ci] Build and test with both ocaml 4 and 5 on linux
- Loading branch information
Showing
37 changed files
with
184 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | | ||
|
@@ -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 | ||
|
@@ -343,11 +348,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 | ||
|
@@ -363,6 +369,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 | ||
|
@@ -379,7 +386,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 | ||
|
@@ -586,7 +593,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: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -119,11 +130,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 | ||
|
@@ -139,6 +151,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 | ||
|
@@ -155,7 +168,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 | ||
|
@@ -325,7 +338,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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.