Skip to content

Commit

Permalink
Merge pull request #6539 from matthiasblaesing/native-with-license
Browse files Browse the repository at this point in the history
Native binaries workflows: Include LICENSE and NOTICE in binaries
  • Loading branch information
matthiasblaesing authored Oct 8, 2023
2 parents 7a21a21 + a00b624 commit 24aefa9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ jobs:

- name: Tidy up and display artifacts
run: |
cp myfiles/nativeexecution-external-sources/LICENSE myfiles/LICENSE
cp myfiles/nativeexecution-external-sources/NOTICE myfiles/NOTICE
rm -rf myfiles/*sources*
ls -l -R
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/native-binary-build-lib.profiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ jobs:
SOURCES="profiler/lib.profiler/build/sources"
mkdir -p ${SOURCES}/profiler/lib.profiler
cp -r profiler/lib.profiler/native/ ${SOURCES}/profiler/lib.profiler/
find profiler/lib.profiler/release/lib/deployed -type d -exec mkdir -p "${SOURCES}/{}" \; -exec touch "${SOURCES}/{}/PLACEHOLDER" \;
cp LICENSE ${SOURCES}/LICENSE
cp NOTICE ${SOURCES}/NOTICE
ls -l -R ${SOURCES}
Expand Down Expand Up @@ -316,6 +315,8 @@ jobs:

- name: Tidy up and display artifacts
run: |
cp myfiles/lib/deployed/jdk16/profiler-external-sources-ASF/LICENSE myfiles/LICENSE
cp myfiles/lib/deployed/jdk16/profiler-external-sources-ASF/NOTICE myfiles/NOTICE
rm -rf myfiles/lib/deployed/jdk16/*sources*
ls -l -R
Expand Down
3 changes: 3 additions & 0 deletions profiler/lib.profiler/native/scripts/buildnative-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ SOURCES="../src-jdk15/class_file_cache.c \
../src-jdk15/Stacks.c \
../src-jdk15/common_functions.c"
DEST="../../release/lib/deployed/jdk16/linux/"

mkdir -p $DEST

cc $CPPFLAGS -m32 -o ../build/config ../src-jdk15/config.c && ../build/config > ../build/config.h

echo "Content of config.h :"
Expand Down
3 changes: 3 additions & 0 deletions profiler/lib.profiler/native/scripts/buildnative-linux64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ SOURCES="../src-jdk15/class_file_cache.c \
../src-jdk15/Stacks.c \
../src-jdk15/common_functions.c"
DEST="../../release/lib/deployed/jdk16/linux-amd64/"

mkdir -p $DEST

cc $CPPFLAGS -m64 -o ../build/config ../src-jdk15/config.c && ../build/config > ../build/config.h

echo "Content of config.h :"
Expand Down
2 changes: 2 additions & 0 deletions profiler/lib.profiler/native/scripts/buildnative-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ SOURCES="../src-jdk15/class_file_cache.c \

DEST="../../release/lib/deployed/jdk16/mac"

mkdir -p $DEST

UNILIB="$DEST/libprofilerinterface.jnilib"

cc $CPPFLAGS ../src-jdk15/config.c -o ../build/config && ../build/config > ../build/config.h
Expand Down

0 comments on commit 24aefa9

Please sign in to comment.