Skip to content

Commit e0aef27

Browse files
committed
Keep binary file at toplevel in analysis.
Fixes #339
1 parent 53ac33b commit e0aef27

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
run: |
7171
cd analysis
7272
mkdir ${{matrix.artifact-folder}}
73-
mv _build/install/default/bin/rescript-editor-analysis.exe ${{matrix.artifact-folder}}
73+
mv rescript-editor-analysis.exe ${{matrix.artifact-folder}}
7474
tar -cvf binary.tar ${{matrix.artifact-folder}}
7575
7676
- uses: actions/upload-artifact@v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ analysis/tests/lib
66
analysis/tests/.bsb.lock
77
analysis/_build
88
analysis/tests/.merlin
9+
analysis/rescript-editor-analysis.exe

analysis/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ SHELL = /bin/bash
22

33
build-native:
44
dune build
5+
cp _build/install/default/bin/rescript-editor-analysis.exe rescript-editor-analysis.exe
56

67
dce:
78
dune build @check @all
@@ -15,6 +16,7 @@ test: build-native tests/node_modules/.bin/rescript
1516
./test.sh
1617

1718
clean: tests/node_modules/.bin/rescript
19+
rm -f rescript-editor-analysis.exe
1820
@cd tests && node_modules/.bin/rescript clean
1921
dune clean
2022

analysis/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
for file in tests/src/*.{res,resi}; do
22
output="$(dirname $file)/expected/$(basename $file).txt"
3-
./_build/install/default/bin/rescript-editor-analysis.exe test $file &> $output
3+
./rescript-editor-analysis.exe test $file &> $output
44
# CI. We use LF, and the CI OCaml fork prints CRLF. Convert.
55
if [ "$RUNNER_OS" == "Windows" ]; then
66
perl -pi -e 's/\r\n/\n/g' -- $output

0 commit comments

Comments
 (0)