File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -54,21 +54,21 @@ jobs:
54
54
with :
55
55
subject-path : ' "workspace/*.dll","workspace/*.exe"'
56
56
57
- - name : Find ELF files - MacOS and Linux
57
+ - name : Find executable and dynamic library files - MacOS and Linux
58
58
if : runner.os != 'Windows' && github.event_name != 'pull_request'
59
- id : find-elf -files
59
+ id : find-executable -files
60
60
working-directory : ${{github.workspace}}
61
61
run : |
62
62
chmod +x ./CIUtils/find-executable.sh
63
- ELF_FILES =$(./CIUtils/find-executable.sh "workspace/")
64
- echo "Found ELF files: $ELF_FILES "
65
- echo "elf_files=$ELF_FILES " >> $GITHUB_OUTPUT
63
+ EXEC_FILES =$(./CIUtils/find-executable.sh "workspace/")
64
+ echo "Found executable and dynamic library files: $EXEC_FILES "
65
+ echo "exec_files=$EXEC_FILES " >> $GITHUB_OUTPUT
66
66
67
67
- name : Generate artifact attestation - MacOS and Linux
68
68
if : runner.os != 'Windows' && github.event_name != 'pull_request'
69
69
uses : actions/attest-build-provenance@v1
70
70
with :
71
- subject-path : ' "workspace/*.dll",${{ steps.find-elf -files.outputs.elf_files }}'
71
+ subject-path : ' "workspace/*.dll",${{ steps.find-executable -files.outputs.exec_files }}'
72
72
73
73
- name : Get short SHA
74
74
uses :
benjlevesque/[email protected]
Original file line number Diff line number Diff line change 9
9
# Directory to search
10
10
directory=$1
11
11
12
- # Find ELF files in the specified directory
13
- files=$( find " $directory " -type f -exec sh -c ' file -b "$1" | grep -q "ELF" && echo "$1"' _ {} \; )
12
+ # Find ELF, Mach-O and Universal Binary files in the specified directory
13
+ files=$( find " $directory " -type f -exec sh -c ' file -b "$1" | grep -q "ELF|Mach-O|universal binary " && echo "$1"' _ {} \; )
14
14
15
15
# Initialize an empty string for the output
16
16
output=" "
You can’t perform that action at this time.
0 commit comments