File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 66
66
mv -v -- "$d/$b" "target/$b-$d-x86_64"
67
67
done
68
68
done
69
+ mv -v -- learn-ocaml-www.zip target/learn-ocaml-www.zip
69
70
- name : Add binaries to release
70
71
env :
71
72
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 12
12
# test master every Saturday at 08:00 UTC
13
13
- cron : ' 0 8 * * 6'
14
14
jobs :
15
+ learn-ocaml-www-zip :
16
+ name : Build learn-ocaml-www.zip archive
17
+ if : ${{ github.event_name != 'schedule' || github.repository == 'ocaml-sf/learn-ocaml' }}
18
+ runs-on : ubuntu-latest
19
+ strategy :
20
+ matrix :
21
+ archive : ["learn-ocaml-www.zip"]
22
+ # we could use an env var, albeit it would be less convenient
23
+ steps :
24
+ - name : Check out the repo
25
+ uses : actions/checkout@v2
26
+ - name : Build learn-ocaml-compilation
27
+ run : ' docker build -t learn-ocaml-compilation --target=compilation .'
28
+ - name : Build ${{ matrix.archive }}
29
+ run : |
30
+ docker run -i --rm -w /home/opam/install-prefix/share/learn-ocaml -u 0 --entrypoint='' learn-ocaml-compilation sh -c \
31
+ 'apk add --no-cache zip >&2 && zip -r ${{ matrix.archive }} www >&2 && tar c ${{ matrix.archive }}' | \
32
+ tar vx
33
+ - name : Upload ${{ matrix.archive }}
34
+ uses : actions/upload-artifact@v2
35
+ with :
36
+ name : ${{ matrix.archive }}
37
+ path : ${{ matrix.archive }}
15
38
static-bin-linux :
16
39
name : Builds static Linux binaries
17
40
if : ${{ github.event_name != 'schedule' || github.repository == 'ocaml-sf/learn-ocaml' }}
You can’t perform that action at this time.
0 commit comments