mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(pkl)
apparently spacing and lines matter. ugh.
This commit is contained in:
parent
172ab2af49
commit
6b09c73fa1
1 changed files with 23 additions and 14 deletions
|
@ -16,22 +16,31 @@ build:
|
||||||
llvm.org: '*'
|
llvm.org: '*'
|
||||||
script:
|
script:
|
||||||
# graalvm fails to understand our compiler environment
|
# graalvm fails to understand our compiler environment
|
||||||
- run: LINE_PREFIX=","
|
- run: |
|
||||||
|
if test "{{hw.platform}}" = "darwin"; then
|
||||||
|
sed -i '/-H:Class=org.pkl.cli.Main/i\
|
||||||
|
,"--static"\
|
||||||
|
,"--native-compiler-path={{deps.llvm.org.prefix}}/bin/clang"\
|
||||||
|
,"-H:CCompilerOption=-fPIC"\
|
||||||
|
,"-H:CCompilerOption=-Wl,-pie,-L{{deps.zlib.net.prefix}}/lib"\
|
||||||
|
,"-H:-CheckToolchain"' \
|
||||||
|
pkl-cli.gradle.kts
|
||||||
|
fi
|
||||||
if: <0.26.0
|
if: <0.26.0
|
||||||
- run: |
|
|
||||||
LINE_PREFIX="add("
|
|
||||||
LINE_SUFFIX=")"
|
|
||||||
if: '>=0.26.0'
|
|
||||||
- run: |
|
|
||||||
sed -i "/-H:Class=org.pkl.cli.Main/i\
|
|
||||||
${LINE_PREFIX}\"--static\"${LINE_SUFFIX}\
|
|
||||||
${LINE_PREFIX}\"--native-compiler-path={{deps.llvm.org.prefix}}/bin/clang\"${LINE_SUFFIX}\
|
|
||||||
${LINE_PREFIX}\"-H:CCompilerOption=-fPIC\"${LINE_SUFFIX}\
|
|
||||||
${LINE_PREFIX}\"-H:CCompilerOption=-Wl,-pie,-L{{deps.zlib.net.prefix}}/lib\"${LINE_SUFFIX}\
|
|
||||||
${LINE_PREFIX}\"-H:-CheckToolchain\"${LINE_SUFFIX}" \
|
|
||||||
pkl-cli.gradle.kts
|
|
||||||
if: linux
|
|
||||||
working-directory: pkl-cli
|
working-directory: pkl-cli
|
||||||
|
- run: |
|
||||||
|
if test "{{hw.platform}}" = "darwin"; then
|
||||||
|
sed -i '/-H:Class=org.pkl.cli.Main/i\
|
||||||
|
add("--static")\
|
||||||
|
add("--native-compiler-path={{deps.llvm.org.prefix}}/bin/clang")\
|
||||||
|
add("-H:CCompilerOption=-fPIC")\
|
||||||
|
add("-H:CCompilerOption=-Wl,-pie,-L{{deps.zlib.net.prefix}}/lib")\
|
||||||
|
add("-H:-CheckToolchain")' \
|
||||||
|
pkl-cli.gradle.kts
|
||||||
|
fi
|
||||||
|
if: '>=0.26.0'
|
||||||
|
working-directory: pkl-cli
|
||||||
|
|
||||||
- ./gradlew -DreleaseBuild=true :pkl-cli:javaExecutable :pkl-cli:${SYS_NAME%os}ExecutableA${ARCH_NAME#a}
|
- ./gradlew -DreleaseBuild=true :pkl-cli:javaExecutable :pkl-cli:${SYS_NAME%os}ExecutableA${ARCH_NAME#a}
|
||||||
- run: |
|
- run: |
|
||||||
install -D jpkl {{prefix}}/bin/jpkl
|
install -D jpkl {{prefix}}/bin/jpkl
|
||||||
|
|
Loading…
Reference in a new issue