Skip to content

Commit 308e4a6

Browse files
committed
also fix the other one
1 parent 66a6311 commit 308e4a6

File tree

1 file changed

+13
-25
lines changed

1 file changed

+13
-25
lines changed

.github/workflows/pipeline.yml

+13-25
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ jobs:
1414
os: [ubuntu-latest]
1515
ocaml-compiler: ["5.1"]
1616

17-
container:
18-
image: alexfedoseev/alpine-node-yarn-esy:0.0.4
19-
2017
steps:
2118
- uses: actions/checkout@v1
2219
- name: Use Node.js ${{ matrix.node-version }}
@@ -62,6 +59,7 @@ jobs:
6259
matrix:
6360
node-version: [16.x]
6461
os: [windows-latest, macOS-13, macOS-latest]
62+
ocaml-compiler: ["5.1"]
6563

6664
steps:
6765
- uses: actions/checkout@v1
@@ -71,30 +69,17 @@ jobs:
7169
with:
7270
node-version: ${{ matrix.node-version }}
7371

74-
- name: Install esy
75-
run: |
76-
npm install -g [email protected]
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
8874
with:
89-
path: ${{ steps.print_esy_cache.outputs.esy_cache }}
90-
key: ${{ matrix.os }}-${{ hashFiles('**/index.json') }}
75+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
9176

92-
- name: build
93-
run: esy b
77+
- run: opam install . --deps-only --with-test
9478

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
9883
env:
9984
CI: true
10085

@@ -108,7 +93,10 @@ jobs:
10893
- name: snaphot tests
10994
if: runner.os != 'Windows'
11095
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
112100

113101
- name: (only on release) Upload artifacts ${{ matrix.os }}
114102
uses: actions/upload-artifact@master

0 commit comments

Comments
 (0)