Use GitHub CI

This commit is contained in:
Marvin W 2022-01-24 17:01:53 +01:00
parent 5bc5ab439a
commit bc93d81064
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A
3 changed files with 27 additions and 23 deletions

16
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,16 @@
# SPDX-FileCopyrightText: 2021, microG Project Team
# SPDX-License-Identifier: CC0-1.0
name: Build
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: ./gradlew --no-daemon build
env:
TERM: dumb
JAVA_OPTS: -Xmx2048m

11
.github/workflows/reuse.yml vendored Normal file
View File

@ -0,0 +1,11 @@
# SPDX-FileCopyrightText: 2021, microG Project Team
# SPDX-License-Identifier: CC0-1.0
name: REUSE Compliance Check
on: [pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: fsfe/reuse-action@v1

View File

@ -1,23 +0,0 @@
# SPDX-FileCopyrightText: 2014, microg Project Team
# SPDX-License-Identifier: CC0-1.0
jobs:
include:
- name: "Build"
language: android
android:
components:
- tools
- build-tools-29.0.3
- android-29
script:
- export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m"
- export TERM=dumb
- echo sdk.dir $ANDROID_HOME > local.properties
- jdk_switcher use oraclejdk8
- ./gradlew build
- name: "REUSE lint"
language: minimal
script:
- docker pull fsfe/reuse:latest
- docker run -v ${TRAVIS_BUILD_DIR}:/data fsfe/reuse:latest lint