Skip to content

Commit 27287fd

Browse files
committedJun 9, 2024·
Strip binaries
1 parent 5709503 commit 27287fd

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed
 

‎.github/workflows/ci.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@ jobs:
3838

3939
- name: Build
4040
uses: docker://ghcr.io/rescript-lang/rescript-ci-build:alpine-3.19-ocaml-5.1.1-01
41-
env:
42-
DUNE_PROFILE: static
4341
with:
44-
args: opam exec -- make
42+
args: opam exec -- dune build --profile static
43+
44+
- name: Copy and strip binaries
45+
run: |
46+
cp -f _build/install/default/bin/rescript-editor-analysis rescript-editor-analysis.exe
47+
cp -f _build/install/default/bin/rescript-tools rescript-tools.exe
48+
strip rescript-editor-analysis.exe rescript-tools.exe
4549
4650
# Also avoids artifacts upload permission loss:
4751
# https://github.com/actions/upload-artifact/tree/ee69f02b3dfdecd58bb31b4d133da38ba6fe3700#permission-loss
@@ -136,6 +140,10 @@ jobs:
136140
- name: Test
137141
run: opam exec -- make test
138142

143+
- name: Strip binaries
144+
if: matrix.os != 'windows-latest'
145+
run: strip rescript-editor-analysis.exe rescript-tools.exe
146+
139147
# Also avoids artifacts upload permission loss:
140148
# https://github.com/actions/upload-artifact/tree/ee69f02b3dfdecd58bb31b4d133da38ba6fe3700#permission-loss
141149
- name: Compress files

0 commit comments

Comments
 (0)
Please sign in to comment.