14
14
os : [ubuntu-latest]
15
15
ocaml-compiler : ["5.1"]
16
16
17
- container :
18
- image : alexfedoseev/alpine-node-yarn-esy:0.0.4
19
-
20
17
steps :
21
18
- uses : actions/checkout@v1
22
19
- name : Use Node.js ${{ matrix.node-version }}
62
59
matrix :
63
60
node-version : [16.x]
64
61
os : [windows-latest, macOS-13, macOS-latest]
62
+ ocaml-compiler : ["5.1"]
65
63
66
64
steps :
67
65
- uses : actions/checkout@v1
@@ -71,30 +69,17 @@ jobs:
71
69
with :
72
70
node-version : ${{ matrix.node-version }}
73
71
74
- - name : Install esy
75
- run : |
76
-
77
-
78
- - name : Install
79
- run : esy install
80
-
81
- - name : Print esy cache
82
- id : print_esy_cache
83
- run : node .github/workflows/print_esy_cache.js
84
-
85
- - name : Try to restore dependencies cache
86
- id : deps-cache
87
- uses : actions/cache@v2
72
+ - name : Set-up OCaml ${{ matrix.ocaml-compiler }}
73
+ uses : ocaml/setup-ocaml@v2
88
74
with :
89
- path : ${{ steps.print_esy_cache.outputs.esy_cache }}
90
- key : ${{ matrix.os }}-${{ hashFiles('**/index.json') }}
75
+ ocaml-compiler : ${{ matrix.ocaml-compiler }}
91
76
92
- - name : build
93
- run : esy b
77
+ - run : opam install . --deps-only --with-test
94
78
95
- - name : test-native
96
- run : |
97
- esy b dune runtest -f
79
+ - run : opam exec -- dune build
80
+
81
+ - name : native tests
82
+ run : opam exec -- dune runtest -f
98
83
env :
99
84
CI : true
100
85
@@ -108,7 +93,10 @@ jobs:
108
93
- name : snaphot tests
109
94
if : runner.os != 'Windows'
110
95
run : |
111
- esy test
96
+ ./tests.sh
97
+
98
+ - name : Release build
99
+ run : opam exec -- dune build --root . --only-packages 'graphql-ppx' --ignore-promoted-rules --no-config --profile release-static
112
100
113
101
- name : (only on release) Upload artifacts ${{ matrix.os }}
114
102
uses : actions/upload-artifact@master
0 commit comments