mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
[skip ci] update test.yml
构建失败时继续其他步骤
This commit is contained in:
parent
902ab32ceb
commit
8d86ce4c13
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@ -78,6 +78,7 @@ jobs:
|
|||||||
uses: gradle/actions/setup-gradle@v3
|
uses: gradle/actions/setup-gradle@v3
|
||||||
|
|
||||||
- name: Build With Gradle
|
- name: Build With Gradle
|
||||||
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
if [ ${{ env.type }} == 'release' ]; then
|
if [ ${{ env.type }} == 'release' ]; then
|
||||||
typeName="原包名"
|
typeName="原包名"
|
||||||
@ -91,12 +92,15 @@ jobs:
|
|||||||
echo "开始${{ env.product }}$typeName构建"
|
echo "开始${{ env.product }}$typeName构建"
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
./gradlew assemble${{ env.product }}release --build-cache --parallel --daemon --warning-mode all
|
./gradlew assemble${{ env.product }}release --build-cache --parallel --daemon --warning-mode all
|
||||||
echo "修改文件名"
|
- name: Rename outputs apks And Move mapping files
|
||||||
|
run: |
|
||||||
|
echo "修改APK文件名"
|
||||||
mkdir -p ${{ github.workspace }}/apk/
|
mkdir -p ${{ github.workspace }}/apk/
|
||||||
mkdir -p ${{ github.workspace }}/mapping/
|
|
||||||
for file in `ls ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk`; do
|
for file in `ls ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk`; do
|
||||||
mv "$file" ${{ github.workspace }}/apk/legado_${{ env.product }}_${{ env.VERSIONL }}_$typeName.apk
|
mv "$file" ${{ github.workspace }}/apk/legado_${{ env.product }}_${{ env.VERSIONL }}_$typeName.apk
|
||||||
done
|
done
|
||||||
|
echo "移动mapping文件"
|
||||||
|
mkdir -p ${{ github.workspace }}/mapping/
|
||||||
for file in `ls ${{ github.workspace }}/app/build/outputs/mapping/*/mapping.txt`; do
|
for file in `ls ${{ github.workspace }}/app/build/outputs/mapping/*/mapping.txt`; do
|
||||||
mv "$file" ${{ github.workspace }}/mapping/mapping.txt
|
mv "$file" ${{ github.workspace }}/mapping/mapping.txt
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user