Skip to content

Commit 7b63557

Browse files
committed
fix workflow bug
1 parent 5477ac4 commit 7b63557

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/all.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,31 +91,32 @@ jobs:
9191
9292
compile_lib() {
9393
local lib_name=$1
94-
94+
local platform=$Platform
95+
9596
if [[ "$lib_name" == "fontconfig" ]]; then
96-
if [[ "$Platform" == "all" ]]; then
97-
echo "force Platform to android for fontconfig"
98-
Platform='android'
99-
elif [[ "$Platform" != "android" ]]; then
100-
echo "Skip fontconfig for $Platform"
97+
if [[ "$platform" == "all" ]]; then
98+
echo "force platform to android for fontconfig"
99+
platform='android'
100+
elif [[ "$platform" != "android" ]]; then
101+
echo "Skip fontconfig for $platform"
101102
return
102103
fi
103104
fi
104105
105106
if [[ "$lib_name" == "webp" ]]; then
106-
if [[ "$Platform" == "android" ]]; then
107+
if [[ "$platform" == "android" ]]; then
107108
echo "Skip webp for android"
108109
return
109-
elif [[ "$Platform" == "all" ]]; then
110+
elif [[ "$platform" == "all" ]]; then
110111
echo "Skip webp for android"
111-
Platform='apple'
112+
platform='apple'
112113
fi
113114
fi
114115
115-
echo "------compile $Platform $lib_name------------------------------------"
116+
echo "------compile $platform $lib_name------------------------------------"
116117
rm -rf build || git reset --hard || git pull origin
117-
.github/workflows/install-dependencies.sh $lib_name $Platform # 补全依赖安装步骤
118-
.github/workflows/onestep.sh $lib_name $Platform $DryRun
118+
.github/workflows/install-dependencies.sh $lib_name $platform # 补全依赖安装步骤
119+
.github/workflows/onestep.sh $lib_name $platform $DryRun
119120
}
120121
121122
libs=(

0 commit comments

Comments
 (0)