Skip to content

Commit

Permalink
fix: syntax error in pipeline (indentation)
Browse files Browse the repository at this point in the history
  • Loading branch information
dec1 committed May 13, 2024
1 parent e5479d7 commit a9c44bb
Showing 1 changed file with 28 additions and 25 deletions.
53 changes: 28 additions & 25 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,34 @@ jobs:
unzip "$asset_name" -d extracted
- name: Check for the expected directory structure
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."
# extracted/{release_name}
# include
Expand All @@ -72,32 +100,7 @@ jobs:
# 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: |
Expand Down

0 comments on commit a9c44bb

Please sign in to comment.