Skip to content

Commit

Permalink
[GHA MAC] Try to reverse list only for JDK ones
Browse files Browse the repository at this point in the history
ci release
  • Loading branch information
RoiArthurB committed Apr 21, 2022
1 parent 27653ff commit 6e88c1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-travis.yml
Expand Up @@ -160,7 +160,7 @@ jobs:
# Variables
MACOS_DEV_ID: ${{ secrets.MACOS_DEV_ID }}
MACOS_KEYCHAIN_PWD: ${{ secrets.MACOS_KEYCHAIN_PWD }}
isWithJDK: contains(matrix.toSignedZipName, 'withJDK')
IS_WITH_JDK: ${{ contains(matrix.toSignedZipName, 'withJDK') }}
run: |
# Unlock
security unlock-keychain -p "$MACOS_KEYCHAIN_PWD" build.keychain
Expand Down
6 changes: 2 additions & 4 deletions travis/mac-sign.sh
Expand Up @@ -3,8 +3,6 @@
function signInJar(){
local f

echo "$1"

# TODO : Prevent gathering META-INF folder
jar tf "$1" | grep '\.so\|\.dylib\|\.jnilib\|\.jar' > filelist.txt

Expand All @@ -14,7 +12,7 @@ function signInJar(){
echo "$1"

# Reverse list to prevent concurrency signature submition per architecture
if [[ $isWithJDK ]]; then
if [[ $IS_WITH_JDK ]]; then
tail -r filelist.txt > reverse-filelist.txt
rm filelist.txt
mv reverse-filelist.txt filelist.txt
Expand Down Expand Up @@ -43,7 +41,7 @@ function signInJar(){
find ./ -name "*jar" > jarlist.txt

# Reverse list to prevent concurrency signature submition per architecture
if [[ $isWithJDK ]]; then
if [[ $IS_WITH_JDK ]]; then
tail -r filelist.txt > reverse-filelist.txt
rm filelist.txt
mv reverse-filelist.txt filelist.txt
Expand Down

0 comments on commit 6e88c1e

Please sign in to comment.