File tree 1 file changed +12
-21
lines changed
1 file changed +12
-21
lines changed Original file line number Diff line number Diff line change 10
10
matrix :
11
11
node-version : [16.x]
12
12
os : [ubuntu-latest]
13
+ ocaml-compiler : ["5.1"]
13
14
14
15
container :
15
16
image : alexfedoseev/alpine-node-yarn-esy:0.0.4
@@ -21,30 +22,17 @@ jobs:
21
22
with :
22
23
node-version : ${{ matrix.node-version }}
23
24
24
- - name : Add tar
25
- run : apk add --no-cache tar
26
- - name : Install
27
- run : esy install
28
-
29
- - name : Print esy cache
30
- id : print_esy_cache
31
- run : node .github/workflows/print_esy_cache.js
32
-
33
- - name : Try to restore dependencies cache
34
- uses : actions/cache@v2
35
- id : deps-cache
25
+ - name : Set-up OCaml ${{ matrix.ocaml-compiler }}
26
+ uses : ocaml/setup-ocaml@v2
36
27
with :
37
- path : ${{ steps.print_esy_cache.outputs.esy_cache }}
38
- key : ${{ matrix.os }}-${{ hashFiles('**/index.json') }}
39
- restore-keys : |
40
- ${{ matrix.os }}-
28
+ ocaml-compiler : ${{ matrix.ocaml-compiler }}
41
29
42
- - name : build
43
- run : esy b
30
+ - run : opam install . --deps-only --with-test
31
+
32
+ - run : opam exec -- dune build
44
33
45
34
- name : native tests
46
- run : |
47
- esy b dune runtest -f
35
+ run : opam exec -- dune runtest -f
48
36
env :
49
37
CI : true
50
38
53
41
GRAPHQL_CI : true
54
42
run : |
55
43
npm ci --no-optional --ignore-scripts
56
- esy test
44
+ ./tests.sh
57
45
esy release-static
58
46
47
+ - name : Release build
48
+ run : opam exec -- dune build --root . --only-packages 'graphql-ppx' --ignore-promoted-rules --no-config --profile release-static
49
+
59
50
- name : (only on release) Upload artifacts ${{ matrix.os }}
60
51
uses : actions/upload-artifact@master
61
52
with :
You can’t perform that action at this time.
0 commit comments