15
15
static-bin-linux :
16
16
name : Builds static Linux binaries
17
17
runs-on : ubuntu-latest
18
+ strategy :
19
+ matrix :
20
+ artifact : ["learn-ocaml-linux-x86_64.tar.gz"]
21
+ # we could use an env var, albeit it would be less convenient
18
22
steps :
19
23
- name : Check out the repo
20
24
uses : actions/checkout@v2
@@ -28,19 +32,25 @@ jobs:
28
32
ldd "${bin[@]}"
29
33
for b in "${bin[@]}"; do ( set -x; "$b" --version ); done
30
34
- name : Archive static binaries
35
+ run : |
36
+ uname -a
37
+ tar cvzf ${{ matrix.artifact }} \
38
+ learn-ocaml learn-ocaml-server learn-ocaml-client
39
+ - name : Upload static binaries
31
40
uses : actions/upload-artifact@v2
32
41
with :
33
- name : static-binaries-linux
34
- path : |
35
- learn-ocaml
36
- learn-ocaml-server
37
- learn-ocaml-client
42
+ name : ${{ matrix.artifact }}
43
+ path : ${{ matrix.artifact }}
38
44
static-bin-macos :
39
45
name : Builds static Macos binaries
40
46
runs-on : macos-latest
41
47
env :
42
48
OPAMYES : 1
43
49
OPAMDEPEXTYES : 1
50
+ strategy :
51
+ matrix :
52
+ artifact : ["learn-ocaml-darwin-x86_64.tar.gz"]
53
+ # we could use an env var, albeit it would be less convenient
44
54
steps :
45
55
- name : Check out the repo
46
56
uses : actions/checkout@v2
71
81
otool -L "$dir"/*
72
82
for b in "${bin[@]}"; do ( set -x; "$dir/$b" --version ); done
73
83
- name : Archive static binaries
84
+ run : |
85
+ uname -a
86
+ cd _build/install/default/bin
87
+ tar cvzhf "$OLDPWD"/${{ matrix.artifact }} \
88
+ learn-ocaml learn-ocaml-server learn-ocaml-client
89
+ - name : Upload static binaries
74
90
uses : actions/upload-artifact@v2
75
91
with :
76
- name : static-binaries-macos
77
- path : _build/install/default/bin/*
92
+ name : ${{ matrix.artifact }}
93
+ path : ${{ matrix.artifact }}
0 commit comments