mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-01 16:05:07 +01:00
CI: Andriod: Use sh to buld and create artifacts
This commit is contained in:
parent
c86c96467a
commit
564ae346d0
12
.ci/android/build.sh
Executable file
12
.ci/android/build.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash -ex
|
||||||
|
|
||||||
|
export NDK_CCACHE=$(which ccache)
|
||||||
|
|
||||||
|
ccache -s
|
||||||
|
|
||||||
|
cd src/android
|
||||||
|
chmod +x ./gradlew
|
||||||
|
./gradlew bundleRelease
|
||||||
|
./gradlew assembleRelease
|
||||||
|
|
||||||
|
ccache -s
|
10
.ci/android/upload.sh
Executable file
10
.ci/android/upload.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash -ex
|
||||||
|
|
||||||
|
. ./.ci/common/pre-upload.sh
|
||||||
|
|
||||||
|
REV_NAME="citra-${GITDATE}-${GITREV}"
|
||||||
|
|
||||||
|
cp src/android/app/build/outputs/apk/release/app-release.apk \
|
||||||
|
"artifacts/${REV_NAME}.apk"
|
||||||
|
cp src/android/app/build/outputs/bundle/release/app-release.aab \
|
||||||
|
"artifacts/${REV_NAME}.aab"
|
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@ -131,23 +131,9 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install ccache -y
|
sudo apt-get install ccache -y
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: ./.ci/android/build.sh
|
||||||
export NDK_CCACHE=$(which ccache)
|
|
||||||
|
|
||||||
ccache -s
|
|
||||||
|
|
||||||
cd src/android
|
|
||||||
chmod +x ./gradlew
|
|
||||||
./gradlew bundleRelease
|
|
||||||
./gradlew assembleRelease
|
|
||||||
|
|
||||||
ccache -s
|
|
||||||
- name: Copy artifacts
|
- name: Copy artifacts
|
||||||
run: |
|
run: ./.ci/android/upload.sh
|
||||||
mkdir artifacts/
|
|
||||||
cp src/android/app/build/outputs/apk/release/*.apk \
|
|
||||||
src/android/app/build/outputs/bundle/release/*.aab \
|
|
||||||
artifacts/
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user