File tree 1 file changed +19
-4
lines changed
1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 15
15
matrix :
16
16
os :
17
17
- macos-latest
18
- - ubuntu-latest
18
+ - ubuntu-18.04
19
19
- windows-latest
20
20
21
21
runs-on : ${{ matrix.os }}
27
27
- name : Checkout submodules
28
28
run : git submodule update --init --recursive
29
29
30
+ - name : Use Node.js 14
31
+ uses : actions/setup-node@v2
32
+ with :
33
+ node-version : 14
34
+
30
35
- name : Use OCaml 4.06.1
31
36
uses : ocaml/setup-ocaml@v2
32
37
with :
41
46
- name : Test
42
47
run : opam exec -- dune runtest
43
48
44
- - name : (release only) Upload artifact ${{ matrix.os }}
49
+ - name : (release only) Get artifact filenames
50
+ id : get_filenames
51
+ # if: github.event_name != 'pull_request'
52
+ run : node .github/workflows/get_filenames.js
53
+
54
+ - name : (release only) Get exe
55
+ # if: github.event_name != 'pull_request'
56
+ shell : bash
57
+ run : mv _build/default/bin/Extract.exe ${{ steps.get_filenames.outputs.exe_name }}
58
+
59
+ - name : (release only) Upload artifact ${{ steps.get_filenames.outputs.artifact_name }}
45
60
# if: github.event_name != 'pull_request'
46
61
uses : actions/upload-artifact@v2
47
62
with :
48
- name : rescript-react-intl-extractor- ${{ matrix.os }}
49
- path : _build/default/bin/Extract.exe
63
+ name : ${{ steps.get_filenames.outputs.artifact_name }}
64
+ path : ${{ steps.get_filenames.outputs.exe_name }}
You can’t perform that action at this time.
0 commit comments