File tree Expand file tree Collapse file tree 8 files changed +27
-34
lines changed
Expand file tree Collapse file tree 8 files changed +27
-34
lines changed Original file line number Diff line number Diff line change 5050 # Also avoids artifacts upload permission loss:
5151 # https://github.com/actions/upload-artifact/tree/ee69f02b3dfdecd58bb31b4d133da38ba6fe3700#permission-loss
5252 - name : Compress files
53- run : tar -cvf binary.tar -C server/analysis_binaries current-platform.exe
53+ run : >
54+ mv analysis/run.exe ${{matrix.os}}-run.exe &&
55+ tar -cvf binary.tar ${{matrix.os}}-run.exe
5456
5557 - uses : actions/upload-artifact@v2
5658 with :
57- name : ${{matrix.os}}.exe
59+ name : ${{matrix.os}}-run .exe
5860 path : binary.tar
Original file line number Diff line number Diff line change 33** /* .map
44.gitignore
55** /tsconfig.json
6- ** /tsconfig.base.json
76contributing.md
8- .travis.yml
9- client /node_modules /**
10- ! client /node_modules /vscode-jsonrpc /**
11- ! client /node_modules /vscode-languageclient /**
12- ! client /node_modules /vscode-languageserver-protocol /**
13- ! client /node_modules /vscode-languageserver-types /**
14- ! client /node_modules /semver /**
7+ .github /**
8+ client /node_modules /@types
9+ client /node_modules /.bin
10+ server /node_modules /.bin
11+ node_modules /.bin
12+ analysis /
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ OCAMLOPT = ocamlopt.opt
66OCAMLFLAGS = -g -w +26+27+32+33+39 -bin-annot -I +compiler-libs $(INCLUDES )
77OCAMLDEP = ocamldep.opt
88
9- OUTPUT = ../server/analysis_binaries/current-platform.exe
10-
119% .cmi : % .mli
1210 @echo Building $@
1311 @$(OCAMLOPT ) $(OCAMLFLAGS ) -c $<
@@ -21,13 +19,13 @@ depend:
2119
2220SOURCE_FILES = $(shell $(OCAMLDEP ) -sort `find src -name "* .ml"` | sed -E "s/\.ml/.cmx/g")
2321
24- $( OUTPUT ) : $(SOURCE_FILES )
22+ run.exe : $(SOURCE_FILES )
2523 @echo Linking...
26- @$(OCAMLOPT ) $(OCAMLFLAGS ) -O2 -o $( OUTPUT ) \
24+ @$(OCAMLOPT ) $(OCAMLFLAGS ) -O2 -o run.exe \
2725 -I +compiler-libs unix.cmxa str.cmxa ocamlcommon.cmxa $(INCLUDES ) $(SOURCE_FILES )
2826 @echo Done!
2927
30- build-native : $( OUTPUT ) depend
28+ build-native : run.exe depend
3129
3230dce : build-native
3331 ../node_modules/.bin/reanalyze -dce-cmt src -suppress src/vendor
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ function exp {
33}
44
55for file in tests/src/* .res; do
6- ../server/analysis_binaries/current-platform .exe test $file & > $( exp $file )
6+ ./run .exe test $file & > $( exp $file )
77done
88
99warningYellow=' \033[0;33m'
Original file line number Diff line number Diff line change 1- We store the analysis binaries here.
2-
1+ We store the analysis production binaries here.
Original file line number Diff line number Diff line change @@ -16,19 +16,16 @@ export let bscExeReScriptPartialPath = path.join(
1616 "bsc.exe"
1717) ;
1818
19- let analysisBinariesFolder = path . join (
19+ export let analysisDevPath = path . join (
2020 path . dirname ( __dirname ) ,
21- "analysis_binaries"
21+ ".." ,
22+ "analysis" ,
23+ "run.exe"
2224) ;
23- // For local development and CI tests
24- export let analysisCurrentPlatformBinaryPath = path . join (
25- analysisBinariesFolder ,
26- "current-platform.exe"
27- ) ;
28- // Platform-specific production binaries manually downloaded from CI
29- export let analysisProductionBinaryPath = path . join (
30- analysisBinariesFolder ,
31- process . platform + ".exe"
25+ export let analysisProdPath = path . join (
26+ path . dirname ( __dirname ) ,
27+ "analysis_binaries" ,
28+ process . platform + "-run.exe"
3229) ;
3330
3431// can't use the native bsb since we might need the watcher -w flag, which is only in the js wrapper
Original file line number Diff line number Diff line change @@ -109,10 +109,10 @@ export let runAnalysisAfterSanityCheck = (
109109 getArgs : ( filePath : string ) => Array < string >
110110) => {
111111 let binaryPath ;
112- if ( fs . existsSync ( c . analysisCurrentPlatformBinaryPath ) ) {
113- binaryPath = c . analysisCurrentPlatformBinaryPath ;
114- } else if ( fs . existsSync ( c . analysisProductionBinaryPath ) ) {
115- binaryPath = c . analysisProductionBinaryPath ;
112+ if ( fs . existsSync ( c . analysisDevPath ) ) {
113+ binaryPath = c . analysisDevPath ;
114+ } else if ( fs . existsSync ( c . analysisProdPath ) ) {
115+ binaryPath = c . analysisProdPath ;
116116 } else {
117117 return null ;
118118 }
You can’t perform that action at this time.
0 commit comments