-
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.
* 🚚 Remove commands and revise package structures Signed-off-by: Rintaro Okamura <[email protected]> * 🔥 Remove Makefile Signed-off-by: Rintaro Okamura <[email protected]> * ⬆️ upgrade dependencies Signed-off-by: Rintaro Okamura <[email protected]> * 🔧 Fix Signed-off-by: Rintaro Okamura <[email protected]> * 🔧 Fix Signed-off-by: Rintaro Okamura <[email protected]> * 💚 Fix Ci Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 Fix Dockerfile Signed-off-by: Rintaro Okamura <[email protected]> * 📝 update docs Signed-off-by: Rintaro Okamura <[email protected]>
- Loading branch information
Showing
24 changed files
with
319 additions
and
431 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 |
---|---|---|
|
@@ -12,7 +12,7 @@ on: | |
paths: | ||
- src/** | ||
- project.clj | ||
- reflection.json | ||
- native-config/** | ||
|
||
jobs: | ||
build-linux: | ||
|
@@ -21,7 +21,7 @@ jobs: | |
- uses: actions/checkout@v1 | ||
- uses: rinx/[email protected] | ||
with: | ||
graalvm-version: 19.3.0 | ||
graalvm-version: 20.0.0 | ||
java-version: java8 | ||
- name: Install dependencies | ||
run: | | ||
|
@@ -34,8 +34,9 @@ jobs: | |
./lein uberjar | ||
- name: Build native image | ||
run: | | ||
make | ||
./lein native-image | ||
# upx --lzma --best gitwerk | ||
mv target/gitwerk gitwerk | ||
zip --junk-paths gitwerk-linux-amd64 gitwerk | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v1 | ||
|
@@ -59,7 +60,7 @@ jobs: | |
echo "::set-env name=GRAALVM_HOME::$GRAALVM_HOME" | ||
echo "::set-env name=JAVA_HOME::$GRAALVM_HOME" | ||
env: | ||
GRAALVM_VERSION: 19.3.0 | ||
GRAALVM_VERSION: 20.0.0 | ||
JAVA_VERSION: java8 | ||
- name: Install dependencies | ||
run: | | ||
|
@@ -70,7 +71,8 @@ jobs: | |
lein uberjar | ||
- name: Build native image | ||
run: | | ||
make | ||
lein native-image | ||
mv target/gitwerk gitwerk | ||
zip --junk-paths gitwerk-macos-amd64 gitwerk | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v1 | ||
|
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 |
---|---|---|
|
@@ -21,9 +21,7 @@ RUN lein uberjar | |
|
||
COPY native-config native-config | ||
|
||
COPY Makefile Makefile | ||
|
||
RUN make | ||
RUN lein native-image | ||
|
||
RUN mkdir -p /out/lib \ | ||
&& cp $JAVA_HOME/jre/lib/amd64/libsunec.so /out/lib/ \ | ||
|
@@ -36,6 +34,6 @@ LABEL maintainer "rinx <[email protected]>" | |
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=graalvm /out /gitwerk-libs | ||
COPY --from=graalvm /gitwerk/gitwerk /gitwerk | ||
COPY --from=graalvm /gitwerk/target/gitwerk /gitwerk | ||
|
||
CMD ["/gitwerk", "-Djava.library.path=/gitwerk-libs/lib", "-Djavax.net.ssl.trustStore=/gitwerk-libs"] |
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
Oops, something went wrong.