-
-
Notifications
You must be signed in to change notification settings - Fork 776
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f2ca5b
commit 36de61a
Showing
2 changed files
with
47 additions
and
50 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,47 @@ | ||
name: Build pull request | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/pr-build.yml" | ||
- "app/**" | ||
- "gradle/**" | ||
- "*.properties" | ||
- ".kts" | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
${{ runner.home }}/.gradle/caches | ||
${{ runner.home }}/.gradle/wrapper | ||
.gradle | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
|
||
- name: Set up Java | ||
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV | ||
|
||
- name: Build with Gradle | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./gradlew assembleRelease --no-daemon -PnoProguard -PsignAsDebug | ||
|
||
- name: Set env | ||
run: echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | ||
|
||
- name: Add hash to APK | ||
run: mv app/build/outputs/apk/release/app-release.apk revanced-manager-${{ env.COMMIT_HASH }}.apk | ||
|
||
- name: Upload build | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: revanced-manager | ||
path: revanced-manager-${{ env.COMMIT_HASH }}.apk |
This file was deleted.
Oops, something went wrong.