30
30
31
31
- name : Checkout
32
32
uses : actions/checkout@v3
33
- with :
34
- submodules : true
35
33
36
34
- name : Use OCaml ${{matrix.ocaml_compiler}}
37
35
uses : ocaml/setup-ocaml@v2
@@ -40,10 +38,41 @@ jobs:
40
38
opam-pin : false
41
39
opam-depext : false
42
40
43
- - name : Use Node.js
44
- uses : actions/setup-node@v3
45
- with :
46
- node-version : 16
41
+ # grep: out of memory
42
+ # /Users/ostera/rescript-org-actions-runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 66: echo: write error: Broken pipe
43
+ # Error: Process completed with exit code 1.
44
+ # - name: "Check if syntax subfolder has changed"
45
+ # id: syntax-changed
46
+ # uses: tj-actions/changed-files@v34
47
+ # with:
48
+ # files: syntax/**
49
+
50
+ # - name: List all changed files
51
+ # shell: bash
52
+ # run: |
53
+ # for file in ${{ steps.syntax-changed.outputs.all_changed_files }}; do
54
+ # echo "$file was changed"
55
+ # done
56
+
57
+ - name : " Syntax: install OPAM dependencies"
58
+ run : opam install . --deps-only
59
+ working-directory : syntax
60
+
61
+ - name : " Syntax: build CLI"
62
+ run : opam exec -- dune build
63
+ working-directory : syntax
64
+
65
+ - name : " Syntax: Run roundtrip tests"
66
+ if : runner.os != 'Windows'
67
+ # if: ${{ runner.os != 'Windows' && steps.syntax-changed-specific.outputs.any_changed == 'true' }}
68
+ run : opam exec -- make roundtrip-test
69
+ working-directory : syntax
70
+
71
+ - name : " Syntax: Run tests (Windows)"
72
+ if : runner.os == 'Windows'
73
+ # if: ${{ runner.os == 'Windows' && steps.syntax-changed-specific.outputs.any_changed == 'true' }}
74
+ run : opam exec -- make test
75
+ working-directory : syntax
47
76
48
77
# Required for ninja build
49
78
- name : " Windows: Use MSVC"
55
84
- name : Build ninja
56
85
run : node scripts/buildNinjaBinary.js
57
86
87
+ - name : Use Node.js
88
+ uses : actions/setup-node@v3
89
+ with :
90
+ node-version : 16
91
+
58
92
- name : NPM install
59
93
run : opam exec -- npm ci
60
94
env :
0 commit comments