File tree 8 files changed +27
-34
lines changed
8 files changed +27
-34
lines changed Original file line number Diff line number Diff line change 50
50
# Also avoids artifacts upload permission loss:
51
51
# https://github.com/actions/upload-artifact/tree/ee69f02b3dfdecd58bb31b4d133da38ba6fe3700#permission-loss
52
52
- 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
54
56
55
57
- uses : actions/upload-artifact@v2
56
58
with :
57
- name : ${{matrix.os}}.exe
59
+ name : ${{matrix.os}}-run .exe
58
60
path : binary.tar
Original file line number Diff line number Diff line change 3
3
** /* .map
4
4
.gitignore
5
5
** /tsconfig.json
6
- ** /tsconfig.base.json
7
6
contributing.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
6
6
OCAMLFLAGS = -g -w +26+27+32+33+39 -bin-annot -I +compiler-libs $(INCLUDES )
7
7
OCAMLDEP = ocamldep.opt
8
8
9
- OUTPUT = ../server/analysis_binaries/current-platform.exe
10
-
11
9
% .cmi : % .mli
12
10
@echo Building $@
13
11
@$(OCAMLOPT ) $(OCAMLFLAGS ) -c $<
@@ -21,13 +19,13 @@ depend:
21
19
22
20
SOURCE_FILES = $(shell $(OCAMLDEP ) -sort `find src -name "* .ml"` | sed -E "s/\.ml/.cmx/g")
23
21
24
- $( OUTPUT ) : $(SOURCE_FILES )
22
+ run.exe : $(SOURCE_FILES )
25
23
@echo Linking...
26
- @$(OCAMLOPT ) $(OCAMLFLAGS ) -O2 -o $( OUTPUT ) \
24
+ @$(OCAMLOPT ) $(OCAMLFLAGS ) -O2 -o run.exe \
27
25
-I +compiler-libs unix.cmxa str.cmxa ocamlcommon.cmxa $(INCLUDES ) $(SOURCE_FILES )
28
26
@echo Done!
29
27
30
- build-native : $( OUTPUT ) depend
28
+ build-native : run.exe depend
31
29
32
30
dce : build-native
33
31
../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 {
3
3
}
4
4
5
5
for file in tests/src/* .res; do
6
- ../server/analysis_binaries/current-platform .exe test $file & > $( exp $file )
6
+ ./run .exe test $file & > $( exp $file )
7
7
done
8
8
9
9
warningYellow=' \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(
16
16
"bsc.exe"
17
17
) ;
18
18
19
- let analysisBinariesFolder = path . join (
19
+ export let analysisDevPath = path . join (
20
20
path . dirname ( __dirname ) ,
21
- "analysis_binaries"
21
+ ".." ,
22
+ "analysis" ,
23
+ "run.exe"
22
24
) ;
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"
32
29
) ;
33
30
34
31
// 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 = (
109
109
getArgs : ( filePath : string ) => Array < string >
110
110
) => {
111
111
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 ;
116
116
} else {
117
117
return null ;
118
118
}
You can’t perform that action at this time.
0 commit comments