Merge pull request #595 from stenzek/android-ci

CI: Build Android AArch64 libretro core
This commit is contained in:
Connor McLaughlin 2020-07-09 02:37:58 +10:00 committed by GitHub
commit e3db2f5ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 22 deletions

View File

@ -127,31 +127,35 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install packages - name: Compile and zip Linux x64 libretro core
shell: bash shell: bash
run: | run: |
sudo apt-get update mkdir build-libretro-linux-x64
sudo apt-get -y install cmake ninja-build ccache cd build-libretro-linux-x64
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO_CORE=ON ..
- name: Compile libretro core cmake --build . --parallel 2
shell: bash
run: |
mkdir build-libretro
cd build-libretro
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO_CORE=ON -G Ninja ..
ninja
- name: Zip libretro core
shell: bash
run: |
cd build-libretro
zip -j duckstation_libretro.so.zip duckstation_libretro.so zip -j duckstation_libretro.so.zip duckstation_libretro.so
- name: Upload Linux libretro core - name: Upload Linux x64 libretro core
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
name: "linux-x64-libretro" name: "linux-libretro"
path: "build-libretro/duckstation_libretro.so.zip" path: "build-libretro-linux-x64/duckstation_libretro.so.zip"
- name: Compile and zip Android AArch64 libretro core
shell: bash
run: |
mkdir build-libretro-android-aarch64
cd build-libretro-android-aarch64
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO_CORE=ON -DANDROID_ABI=arm64-v8a -DCMAKE_TOOLCHAIN_FILE=${ANDROID_SDK_ROOT}/ndk-bundle/build/cmake/android.toolchain.cmake ..
cmake --build . --parallel 2
zip -j duckstation_libretro_android_aarch64.so.zip duckstation_libretro_android.so
- name: Upload Android AArch64 libretro core
uses: actions/upload-artifact@v1
with:
name: "linux-libretro"
path: "build-libretro-android-aarch64/duckstation_libretro_android_aarch64.so.zip"
create-release: create-release:
@ -192,7 +196,7 @@ jobs:
- name: Download Linux libretro core - name: Download Linux libretro core
uses: actions/download-artifact@v1 uses: actions/download-artifact@v1
with: with:
name: "linux-x64-libretro" name: "linux-libretro"
- name: Create release - name: Create release
uses: "marvinpinto/action-automatic-releases@latest" uses: "marvinpinto/action-automatic-releases@latest"
@ -207,4 +211,5 @@ jobs:
linux-x64-appimage-sdl-zsync/duckstation-sdl-x64.AppImage.zsync linux-x64-appimage-sdl-zsync/duckstation-sdl-x64.AppImage.zsync
linux-x64-appimage-qt/duckstation-qt-x64.AppImage linux-x64-appimage-qt/duckstation-qt-x64.AppImage
linux-x64-appimage-qt-zsync/duckstation-qt-x64.AppImage.zsync linux-x64-appimage-qt-zsync/duckstation-qt-x64.AppImage.zsync
linux-x64-libretro/duckstation_libretro.so.zip linux-libretro/duckstation_libretro.so.zip
linux-libretro/duckstation_libretro_android_aarch64.so.zip