-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Travis Wyatt <[email protected]>
- Loading branch information
1 parent
72ce7de
commit 218dcc6
Showing
17 changed files
with
182 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,60 @@ | ||
name: CI | ||
on: | ||
push: | ||
pull_request: | ||
|
||
env: | ||
GRADLE_OPTS: "-Dorg.gradle.daemon=false" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
|
||
env: | ||
GRADLE_ARGS: >- | ||
--no-daemon | ||
--max-workers 2 | ||
-Pkotlin.incremental=false | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
- uses: actions/checkout@v2 | ||
- uses: gradle/wrapper-validation-action@v1 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
java-version: 1.8 | ||
distribution: "adopt-hotspot" | ||
java-version: "11.0.11+9" | ||
|
||
- name: Gradle cache | ||
uses: actions/cache@v2 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
~/.konan | ||
key: ${{ runner.os }}-build-${{ hashFiles('**/build.gradle.kts') }} | ||
~/.android/build-cache | ||
~/.android/cache | ||
key: ${{ runner.os }}-build-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Check | ||
run: ./gradlew $GRADLE_ARGS check jacocoTestReport | ||
|
||
- name: Keyring | ||
run: echo "${{ secrets.SIGNING_SECRET_KEY_RING }}" | base64 --decode > "$HOME/secring.gpg" | ||
|
||
- name: Publish Locally | ||
run: >- | ||
./gradlew | ||
$GRADLE_ARGS | ||
--no-parallel | ||
-PVERSION_NAME=unspecified | ||
-Psigning.keyId="${{ secrets.SIGNING_KEY_ID }}" | ||
-Psigning.password="${{ secrets.SIGNING_PASSWORD }}" | ||
-Psigning.secretKeyRingFile="$HOME/secring.gpg" | ||
publishToMavenLocal | ||
- name: Codecov | ||
uses: codecov/codecov-action@v1 | ||
- run: ./gradlew check jacocoTestReport | ||
- uses: EnricoMi/publish-unit-test-result-action@v1 | ||
with: | ||
files: '**/build/test-results/**/*.xml' | ||
report_individual_runs: 'true' | ||
|
||
- run: | | ||
set -o xtrace | ||
if [ ! -z "${{ secrets.SIGNING_KEY }}" ]; then | ||
./gradlew \ | ||
--no-parallel \ | ||
-PVERSION_NAME="unspecified" \ | ||
-PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}" \ | ||
-PsigningInMemoryKeyPassword="${{ secrets.SIGNING_PASSWORD }}" \ | ||
publishToMavenLocal | ||
else | ||
./gradlew \ | ||
--no-parallel \ | ||
-PVERSION_NAME="unspecified-SNAPSHOT" \ | ||
publishToMavenLocal | ||
fi | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
fail_ci_if_error: true | ||
|
||
- run: | | ||
rm -f ~/.gradle/caches/modules-2/modules-2.lock | ||
rm -f ~/.gradle/caches/modules-2/gc.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
public final class com/juul/exercise/compile/ExerciseProcessor : com/google/devtools/ksp/processing/SymbolProcessor { | ||
public final class com/juul/exercise/compile/ExerciseProcessorProvider : com/google/devtools/ksp/processing/SymbolProcessorProvider { | ||
public fun <init> ()V | ||
public fun finish ()V | ||
public fun init (Ljava/util/Map;Lkotlin/KotlinVersion;Lcom/google/devtools/ksp/processing/CodeGenerator;Lcom/google/devtools/ksp/processing/KSPLogger;)V | ||
public fun onError ()V | ||
public fun process (Lcom/google/devtools/ksp/processing/Resolver;)Ljava/util/List; | ||
public fun create (Lcom/google/devtools/ksp/processing/SymbolProcessorEnvironment;)Lcom/google/devtools/ksp/processing/SymbolProcessor; | ||
} | ||
|
Oops, something went wrong.