Skip to content

Commit

Permalink
check release dir structure in ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dec1 committed May 13, 2024
1 parent 0756ee5 commit e5479d7
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,44 @@ jobs:
asset_name="${{ env.tag_name }}.zip"
unzip "$asset_name" -d extracted
- name: Check for the expected directory structure

# extracted/{release_name}
# include
# boost/
# libs
# arm64-v8a/
# armeabi-v7a/
# x86/
# x86_64/

run: |
# Expected root directory inside the extracted folder
expected_dir="extracted/${{ env.tag_name }}"
echo "Checking for directory: $expected_dir"
# Check if the extracted root directory exists
if [ ! -d "$expected_dir" ]; then
echo "Directory $expected_dir does not exist."
exit 1
fi
# Check for the 'include' directory with the 'boost' subdirectory
if [ ! -d "$expected_dir/include/boost" ]; then
echo "Directory $expected_dir/include/boost does not exist."
exit 1
fi
# Check for the 'libs' directory with expected architecture subdirectories
for arch in arm64-v8a armeabi-v7a x86 x86_64; do
if [ ! -d "$expected_dir/libs/$arch" ]; then
echo "Directory $expected_dir/libs/$arch does not exist."
exit 1
fi
done
echo "All specified directories exist."

# - name: Check for the specific file
# run: |
# # Update this path to the expected location of your file within the extracted directory
Expand All @@ -70,3 +108,5 @@ jobs:
# echo "File does not exist."
# exit 1
# fi


0 comments on commit e5479d7

Please sign in to comment.