Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: configure initial sp version (#1796)
* feat: configure initial sp version * build: update protobuf plugin (#1770) @Neenu1995 @chingor13 unbreak build Co-authored-by: Elliotte Rusty Harold <elharo@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
99 additions
and
90 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,106 +1,119 @@ | ||
on: | ||
'on': | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
- 1.31.3-sp | ||
pull_request: null | ||
name: ci | ||
jobs: | ||
units: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [7, 8, 11] | ||
java: | ||
- 7 | ||
- 8 | ||
- 11 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{matrix.java}} | ||
- run: java -version | ||
- run: .kokoro/install_dependencies.sh | ||
- run: .kokoro/build.sh | ||
env: | ||
JOB_TYPE: test | ||
- name: coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
name: actions ${{matrix.java}} | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{matrix.java}} | ||
- run: java -version | ||
- run: .kokoro/install_dependencies.sh | ||
- run: .kokoro/build.sh | ||
env: | ||
JOB_TYPE: test | ||
- name: coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
name: actions ${{matrix.java}} | ||
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: git configuration to avoid automatic CRLF conversion | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- run: java -version | ||
- name: Install google-play-services artifact | ||
shell: bash | ||
run: | | ||
mkdir play-services | ||
cd play-services | ||
curl --output play-services-basement-8.3.0.aar https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/8.3.0/play-services-basement-8.3.0.aar | ||
unzip play-services-basement-8.3.0.aar | ||
mvn install:install-file \ | ||
-Dfile=classes.jar \ | ||
-DgroupId=com.google.android.google-play-services \ | ||
-DartifactId=google-play-services \ | ||
-Dversion=1 \ | ||
-Dpackaging=jar | ||
- run: .kokoro/build.sh | ||
shell: bash | ||
env: | ||
JOB_TYPE: test | ||
- name: git configuration to avoid automatic CRLF conversion | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- run: java -version | ||
- name: Install google-play-services artifact | ||
shell: bash | ||
run: > | ||
mkdir play-services | ||
cd play-services | ||
curl --output play-services-basement-8.3.0.aar | ||
https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/8.3.0/play-services-basement-8.3.0.aar | ||
unzip play-services-basement-8.3.0.aar | ||
mvn install:install-file \ | ||
-Dfile=classes.jar \ | ||
-DgroupId=com.google.android.google-play-services \ | ||
-DartifactId=google-play-services \ | ||
-Dversion=1 \ | ||
-Dpackaging=jar | ||
- run: .kokoro/build.sh | ||
shell: bash | ||
env: | ||
JOB_TYPE: test | ||
dependencies: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [8, 11] | ||
java: | ||
- 8 | ||
- 11 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{matrix.java}} | ||
- run: java -version | ||
- run: .kokoro/install_dependencies.sh | ||
- run: .kokoro/dependencies.sh | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{matrix.java}} | ||
- run: java -version | ||
- run: .kokoro/install_dependencies.sh | ||
- run: .kokoro/dependencies.sh | ||
linkage-monitor: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- run: java -version | ||
- run: .kokoro/install_dependencies.sh | ||
- name: Install artifacts to local Maven repository | ||
run: .kokoro/build.sh | ||
shell: bash | ||
- name: Validate dependencies with regard to com.google.cloud:libraries-bom (latest release) | ||
uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- run: java -version | ||
- run: .kokoro/install_dependencies.sh | ||
- name: Install artifacts to local Maven repository | ||
run: .kokoro/build.sh | ||
shell: bash | ||
- name: >- | ||
Validate dependencies with regard to com.google.cloud:libraries-bom | ||
(latest release) | ||
uses: >- | ||
GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- run: java -version | ||
- run: .kokoro/install_dependencies.sh | ||
- run: .kokoro/build.sh | ||
env: | ||
JOB_TYPE: lint | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- run: java -version | ||
- run: .kokoro/install_dependencies.sh | ||
- run: .kokoro/build.sh | ||
env: | ||
JOB_TYPE: lint | ||
clirr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- run: java -version | ||
- run: .kokoro/install_dependencies.sh | ||
- run: .kokoro/build.sh | ||
env: | ||
JOB_TYPE: clirr | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- run: java -version | ||
- run: .kokoro/install_dependencies.sh | ||
- run: .kokoro/build.sh | ||
env: | ||
JOB_TYPE: clirr |
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
234c38c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull