mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 13:25:07 +01:00
0c29f982d5
We used a custom version of Vulkan-Hpp which split the files a lot prior to avoid any developers needing to manually set IDE settings for IntelliJ to work but this wasn't practical due to how it required modifications to Vulkan-Hpp's generator which would make maintenance extremely difficult. It was determined that we should just add the requirement for changing the IDE settings and use Vulkan-Hpp directly.
70 lines
1.7 KiB
YAML
70 lines
1.7 KiB
YAML
name: CI
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
JVM_OPTS: -Xmx6G
|
|
|
|
steps:
|
|
- name: Git Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Restore Gradle Cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: /root/.gradle/
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gradle-
|
|
|
|
- name: Restore CXX Cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: app/.cxx/
|
|
key: ${{ runner.os }}-cxx-${{ hashFiles('**/CMakeLists.txt') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-cxx-
|
|
|
|
- name: Setup Environment for Gradle & Ninja Build
|
|
run: |
|
|
chmod +x gradlew
|
|
sudo apt-get install -y ninja-build
|
|
|
|
- name: Android Lint
|
|
run: ./gradlew --stacktrace lint
|
|
|
|
- name: Upload Lint Report
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: lint-result.html
|
|
path: app/build/reports/lint-results.html
|
|
|
|
- name: Android Assemble
|
|
run: ./gradlew assemble
|
|
|
|
- name: Upload Debug APK
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: app-debug.apk
|
|
path: app/build/outputs/apk/debug/
|
|
|
|
- name: Upload Release APK
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: app-release.apk
|
|
path: app/build/outputs/apk/release/
|
|
|
|
- name: Upload R8 Mapping
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: mapping.txt
|
|
path: app/build/outputs/mapping/release/
|
|
|
|
- name: Delete Build Folder
|
|
run: rm -rf app/build/
|