Skip to content

Commit

Permalink
build linking statically
Browse files Browse the repository at this point in the history
  • Loading branch information
mununki committed Jan 3, 2023
1 parent ad4fc02 commit 266d45a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: opam install . --deps-only --with-test

- name: Build
run: opam exec -- dune build
run: opam exec -- dune build --profile static

- name: Copy built PPX file
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: opam install . --deps-only --with-test

- name: Build
run: opam exec -- dune build
run: opam exec -- dune build --profile static

- name: Copy built PPX file
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: opam install . --deps-only --with-test

- name: Build
run: opam exec -- dune build
run: opam exec -- dune build --profile static

- name: Copy built PPX file
run: |
Expand Down
5 changes: 5 additions & 0 deletions bin/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
(env
(static
(flags
(:standard -ccopt -static))))

(executable
(package ppx_ts)
(name bin)
Expand Down
2 changes: 0 additions & 2 deletions dune-workspace
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
(lang dune 1.1)

(env (release-static (flags (:standard -ccopt -static))))

0 comments on commit 266d45a

Please sign in to comment.