-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/build/ | ||
/docker/ | ||
/deps/vcpkg/buildtrees | ||
/deps/vcpkg/packages | ||
/vcpkgs* | ||
/.git | ||
/.cache | ||
.DS_Store | ||
justfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM alpine:3.20.2 AS builder | ||
|
||
ARG GIT_HASH=dev | ||
WORKDIR /project | ||
RUN apk add bash linux-headers gcc g++ curl zip unzip tar git python3 cmake ninja-is-really-ninja make automake autoconf autoconf-archive libtool pkgconfig | ||
RUN echo insecure >> $HOME/.curlrc | ||
|
||
COPY . . | ||
RUN python3 bootstrap.py --triplet=x64-linux-static | ||
RUN python3 build.py --triplet=x64-linux-static --dist --git-hash=${GIT_HASH} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
git_hash := `git rev-parse HEAD` | ||
|
||
cleangitcondition: | ||
git diff --exit-code | ||
|
||
buildmusl: | ||
echo "Building static musl binary: {{git_hash}}" | ||
docker build --build-arg="GIT_HASH={{git_hash}}" -f ./docker/MuslStaticBuild.Dockerfile -t emapmuslbuild . | ||
docker create --name extract emapmuslbuild | ||
docker cp extract:/project/build/emap-release-x64-linux-static-Release-dist/packages ./build | ||
docker rm extract |