Add unzip step for libv8 in CI workflows and build script

This commit is contained in:
Max 2024-11-23 18:09:21 +08:00
parent f97ce23130
commit f3b3e80ccf
4 changed files with 39 additions and 3 deletions

View file

@ -56,8 +56,17 @@ jobs:
uses: actions/checkout@v4
with:
repository: yaoapp/v8go
lfs: true
path: v8go
- name: Unzip libv8
run: |
files=$(find ./v8go -name "libv8*.zip")
for file in $files; do
dir=$(dirname "$file") # Get the directory where the ZIP file is located
echo "Extracting $file to directory $dir"
unzip -o -d $dir $file
rm -rf $dir/__MACOSX
done
- name: Checkout XGen v1.0
# ** XGEN will be renamed to DUI in the feature. and move to the new repository. **

View file

@ -143,9 +143,18 @@ jobs:
uses: actions/checkout@v4
with:
repository: yaoapp/v8go
lfs: true
path: v8go
- name: Unzip libv8
run: |
files=$(find ./v8go -name "libv8*.zip")
for file in $files; do
dir=$(dirname "$file") # Get the directory where the ZIP file is located
echo "Extracting $file to directory $dir"
unzip -o -d $dir $file
rm -rf $dir/__MACOSX
done
- name: Checkout Demo App
uses: actions/checkout@v4
with:

View file

@ -101,9 +101,18 @@ jobs:
uses: actions/checkout@v4
with:
repository: yaoapp/v8go
lfs: true
path: v8go
- name: Unzip libv8
run: |
files=$(find ./v8go -name "libv8*.zip")
for file in $files; do
dir=$(dirname "$file") # Get the directory where the ZIP file is located
echo "Extracting $file to directory $dir"
unzip -o -d $dir $file
rm -rf $dir/__MACOSX
done
- name: Checkout Demo App
uses: actions/checkout@v4
with:

View file

@ -9,6 +9,15 @@ git clone https://github.com/yaoapp/yao-init.git /app/yao-init && \
git clone https://github.com/yaoapp/yao.git /app/yao
files=$(find /app/v8go -name "libv8*.zip")
for file in $files; do
dir=$(dirname "$file") # Get the directory where the ZIP file is located
echo "Extracting $file to directory $dir"
unzip -o -d $dir $file
rm -rf $dir/__MACOSX
done
cd /app/yao && \
export VERSION=$(cat share/const.go |grep 'const VERSION' | awk '{print $4}' | sed "s/\"//g")