-
Notifications
You must be signed in to change notification settings - Fork 44
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: Luca Stefani <[email protected]> Co-authored-by: Sebastiano Barezzi <[email protected]> Co-authored-by: Tom Powell <[email protected]> Change-Id: I425de19a19a300bc7939a5f8b46f93f4d83f1a2b
- Loading branch information
1 parent
7ce9ce8
commit ef513e8
Showing
3 changed files
with
73 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: build | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
uses: ./.github/workflows/build |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: build | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Setup JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Build with Gradle | ||
shell: bash | ||
run: ./gradlew assembleDebug | ||
|
||
- name: Generate Android.bp | ||
shell: bash | ||
run: | | ||
./gradlew app:generateBp | ||
if [[ ! -z $(git status -s) ]]; then | ||
git status | ||
exit -1 | ||
fi | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: app-debug.apk | ||
path: app/build/outputs/apk/debug/app-debug.apk |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: gerrit checks | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
type: string | ||
gerrit-ref: | ||
type: string | ||
change: | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: lineageos-infra/fetch-gerrit-change@main | ||
with: | ||
gerrit-ref: ${{ inputs.gerrit-ref }} | ||
ref: ${{ inputs.ref }} | ||
|
||
- name: Build | ||
uses: ./.github/workflows/build | ||
|
||
- uses: lineageos-infra/gerrit-vote@main | ||
if: always() | ||
with: | ||
auth: ${{ secrets.GERRIT_VOTE_CREDS }} | ||
change: ${{ inputs.change }} | ||
ref: ${{ inputs.ref }} |