Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-compile libsail_coverage.a in binary release #1126

Open
wants to merge 3 commits into
base: sail2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,15 @@ jobs:
findutils \
diffutils \
rsync \
which
which \
cargo
curl -L -o /usr/local/bin/opam https://github.com/ocaml/opam/releases/download/2.1.5/opam-2.1.5-i686-linux
chmod +x /usr/local/bin/opam

- name: System dependencies (Mac)
if: startsWith(matrix.os, 'macos')
run: |
brew install --force --overwrite gpatch gmp z3 pkgconf opam git
brew install --force --overwrite gpatch gmp z3 pkgconf opam git rust

- uses: actions/checkout@v4

Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@ sail:
install: sail
dune install

libsail_coverage:
$(MAKE) -C lib/coverage

# Build binary tarball. The lib directory is very large and not needed
# for running the compiler. TARBALL_EXTRA_BIN can be used to bundle z3.
tarball: sail
tarball: sail libsail_coverage
dune install --relocatable --prefix=_build/tarball/sail
rm -rf _build/tarball/sail/lib
ifdef TARBALL_EXTRA_BIN
cp $(TARBALL_EXTRA_BIN) _build/tarball/sail/bin/
endif
cp lib/coverage/libsail_coverage.a _build/tarball/sail/share/sail/lib/coverage/
tar czvf _build/sail.tar.gz -C _build/tarball sail

coverage:
Expand Down
Loading