Skip to content

Commit

Permalink
also fix the other one
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrolich committed May 17, 2024
1 parent 66a6311 commit 308e4a6
Showing 1 changed file with 13 additions and 25 deletions.
38 changes: 13 additions & 25 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ jobs:
os: [ubuntu-latest]
ocaml-compiler: ["5.1"]

container:
image: alexfedoseev/alpine-node-yarn-esy:0.0.4

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
Expand Down Expand Up @@ -62,6 +59,7 @@ jobs:
matrix:
node-version: [16.x]
os: [windows-latest, macOS-13, macOS-latest]
ocaml-compiler: ["5.1"]

steps:
- uses: actions/checkout@v1
Expand All @@ -71,30 +69,17 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install esy
run: |
npm install -g [email protected]
- name: Install
run: esy install

- name: Print esy cache
id: print_esy_cache
run: node .github/workflows/print_esy_cache.js

- name: Try to restore dependencies cache
id: deps-cache
uses: actions/cache@v2
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
path: ${{ steps.print_esy_cache.outputs.esy_cache }}
key: ${{ matrix.os }}-${{ hashFiles('**/index.json') }}
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- name: build
run: esy b
- run: opam install . --deps-only --with-test

- name: test-native
run: |
esy b dune runtest -f
- run: opam exec -- dune build

- name: native tests
run: opam exec -- dune runtest -f
env:
CI: true

Expand All @@ -108,7 +93,10 @@ jobs:
- name: snaphot tests
if: runner.os != 'Windows'
run: |
esy test
./tests.sh
- name: Release build
run: opam exec -- dune build --root . --only-packages 'graphql-ppx' --ignore-promoted-rules --no-config --profile release-static

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

0 comments on commit 308e4a6

Please sign in to comment.