Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Support OCaml 4.08+ (#47)
* chore: setup separate esy files for bsb5, bsb6+ and native
* ci: no idea what im doing, trying to fix ci
* chore: trigger rebuild
* chore: does it make any difference?
* test(bucklescript): run against bs-platform 7
* ci: run native tests first
* ci: fix yaml
* ci: use quotes
* chore: dump change
* Update .github/workflows/release.yml

Co-Authored-By: Antonio Nuno Monteiro <anmonteiro@gmail.com>

* Update .github/workflows/pipeline.yml

Co-Authored-By: Antonio Nuno Monteiro <anmonteiro@gmail.com>

* chore: post merge
* ci: fix bsb6 tests on windows
* ci: change esy version

Co-authored-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
  • Loading branch information
baransu and anmonteiro committed Feb 2, 2020
1 parent 479ab53 commit c533986
Show file tree
Hide file tree
Showing 70 changed files with 3,077 additions and 425 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/pipeline.yml
Expand Up @@ -99,7 +99,7 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install esy
run: |
npm install -g esy@latest
npm install -g esy@0.6.0
- name: Get esy store path
id: esy_cache_path
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
# OCaml 4.06 and BuckleScript 6
- name: install-build
run: |
esy install
esy install
esy b
- name: test-native
run: |
Expand All @@ -148,14 +148,21 @@ jobs:
path: _build/default/src/bucklescript_bin/bin.exe

# OCaml 4.02 and BuckleScript 5
- name: install-build @402
run: |
esy @402 install
esy @402 b
- name: test-bsb5
- name: bucklescript5
run: |
esy "@402" install
esy "@402" b
cd tests_bucklescript
node ./run.js bsb5
# OCaml 4.06 and BuckleScript 6+
- name: bucklescript6
run: |
esy "@406" install
esy "@406" b
cd tests_bucklescript
node ./run.js bsb6
env:
CI: true
- name: (only on release) Upload artifacts ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion 402.json
@@ -1,5 +1,6 @@
{
"name": "graphql_ppx",
"description": "Used to build for BuckleScript 5 using OCaml 4.02",
"dependencies": {
"@opam/dune": "*",
"@opam/result": "*",
Expand All @@ -8,7 +9,6 @@
"@opam/ppx_tools_versioned": "*",
"@esy-ocaml/reason": "*",
"refmterr": "*",
"ocaml": "~4.2.3",
"@opam/menhir": "20171013"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions 406.esy.lock/.gitattributes
@@ -0,0 +1,3 @@

# Set eol to LF so files aren't converted to CRLF-eol on Windows.
* text eol=lf
3 changes: 3 additions & 0 deletions 406.esy.lock/.gitignore
@@ -0,0 +1,3 @@

# Reset any possible .gitignore, we want all esy.lock to be un-ignored.
!*

0 comments on commit c533986

Please sign in to comment.