Add unzip step for libv8 in CI workflows and build script
This commit is contained in:
parent
f97ce23130
commit
f3b3e80ccf
4 changed files with 39 additions and 3 deletions
11
.github/workflows/build-macos.yml
vendored
11
.github/workflows/build-macos.yml
vendored
|
|
@ -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. **
|
||||
|
|
|
|||
11
.github/workflows/pr-test.yml
vendored
11
.github/workflows/pr-test.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
11
.github/workflows/unit-test.yml
vendored
11
.github/workflows/unit-test.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue