skyline/.github/workflows/ci.yml
◱ PixelyIon 6a931b95b0 Implement C++ Support for Controller Configuration
This commit adds support to the C++ end of things for controller configuration. It isn't targeting being 1:1 to HOS for controller assignment but is rather based on intuition of how things should be.
2020-08-21 11:48:29 +00:00

68 lines
1.5 KiB
YAML

name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
env:
JVM_OPTS: -Xmx6G
steps:
- name: Git Checkout
uses: actions/checkout@v2
with:
submodules: true
- 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
run: chmod +x gradlew
- 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/