2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches : [master]
6
6
pull_request :
7
- branches : [ master ]
7
+ branches : [master]
8
8
9
9
jobs :
10
10
test :
@@ -50,55 +50,55 @@ jobs:
50
50
runs-on : ${{matrix.os}}
51
51
52
52
steps :
53
- # needed for Windows testing
54
- - name : Set git to use LF
55
- run : |
56
- git config --global core.autocrlf false
57
- git config --global core.eol lf
58
-
59
- - uses : actions/checkout@v2.3.4
60
-
61
- - name : Cache OCaml's opam
62
- uses : actions/cache@v2.1.5
63
- with :
64
- path : ~/.opam
65
- key : ${{matrix.os}}-reanalyze-v2
66
-
67
- - name : Use OCaml
68
- uses : ocaml/setup-ocaml@v2
69
- with :
70
- ocaml-compiler : ${{matrix.ocaml-compiler}}
71
-
72
- - name : Use Node.js
73
- uses : actions/setup-node@v2.1.5
74
- with :
75
- node-version : 14.4.0
76
-
77
- - run : npm ci
78
-
79
- - run : opam install dune cppo
80
-
81
- - name : Build
82
- run : ${{matrix.build}}
83
-
84
- - name : Test
85
- if : matrix.target == 'rescript'
86
- run : ${{matrix.test}}
87
-
88
- # Also avoids artifacts upload permission loss:
89
- # https://github.com/actions/upload-artifact/tree/ee69f02b3dfdecd58bb31b4d133da38ba6fe3700#permission-loss
90
- - name : Compress files
91
- if : matrix.target == 'rescript'
92
- run : |
93
- mkdir ${{matrix.artifact-folder}}
94
- cp _build/default/src/Reanalyze.exe reanalyze.exe
95
- tar -cvf binary.tar reanalyze.exe
96
-
97
- - uses : actions/upload-artifact@v2
98
- if : matrix.target == 'rescript'
99
- with :
100
- name : ${{matrix.os}}
101
- path : binary.tar
53
+ # needed for Windows testing
54
+ - name : Set git to use LF
55
+ run : |
56
+ git config --global core.autocrlf false
57
+ git config --global core.eol lf
58
+
59
+ - uses : actions/checkout@v2.3.4
60
+
61
+ - name : Cache OCaml's opam
62
+ uses : actions/cache@v2.1.5
63
+ with :
64
+ path : ~/.opam
65
+ key : ${{matrix.os}}-reanalyze-v2
66
+
67
+ - name : Use OCaml
68
+ uses : ocaml/setup-ocaml@v2
69
+ with :
70
+ ocaml-compiler : ${{matrix.ocaml-compiler}}
71
+
72
+ - name : Use Node.js
73
+ uses : actions/setup-node@v2.1.5
74
+ with :
75
+ node-version : 14.4.0
76
+
77
+ - run : npm ci
78
+
79
+ - run : opam install dune cppo
80
+
81
+ - name : Build
82
+ run : ${{matrix.build}}
83
+
84
+ - name : Test
85
+ if : matrix.target == 'rescript'
86
+ run : ${{matrix.test}}
87
+
88
+ # Also avoids artifacts upload permission loss:
89
+ # https://github.com/actions/upload-artifact/tree/ee69f02b3dfdecd58bb31b4d133da38ba6fe3700#permission-loss
90
+ - name : Compress files
91
+ if : matrix.target == 'rescript'
92
+ run : |
93
+ mkdir ${{matrix.artifact-folder}}
94
+ cp _build/default/src/Reanalyze.exe reanalyze.exe
95
+ tar -cvf binary.tar reanalyze.exe
96
+
97
+ - uses : actions/upload-artifact@v2
98
+ if : matrix.target == 'rescript'
99
+ with :
100
+ name : ${{matrix.os}}
101
+ path : binary.tar
102
102
103
103
npm_pack :
104
104
needs : test
@@ -113,7 +113,7 @@ jobs:
113
113
tar xf macos-latest/binary.tar -C dist/vendor-darwin
114
114
tar xf ubuntu-latest/binary.tar -C dist/vendor-linux
115
115
tar xf windows-latest/binary.tar -C dist/vendor-win32
116
-
116
+
117
117
# Add the correct package.json / README / etc to dist
118
118
node scripts/prepare_release.js
119
119
0 commit comments