Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: build pull requests #1228

Merged
merged 40 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6436078
ci: added workflow for compose pr
BenjaminHalko Sep 9, 2023
701831c
ci(pr-build): update actions/checkout to v4
validcube Sep 10, 2023
348b61f
ci: generate keystore
BenjaminHalko Sep 13, 2023
f481c69
ci: better key signing
BenjaminHalko Sep 13, 2023
0082894
ci: updated key signing step
BenjaminHalko Sep 13, 2023
9db18c4
ci: this time it will work
BenjaminHalko Sep 13, 2023
bc1a265
ci: i was wrong last time
BenjaminHalko Sep 13, 2023
8976473
ci: please work
BenjaminHalko Sep 13, 2023
fdf2d93
ci: updated key signing process
BenjaminHalko Sep 13, 2023
8aec4df
ci: added keypass
BenjaminHalko Sep 13, 2023
7eb2a59
ci: added line breaks to key
BenjaminHalko Sep 13, 2023
01044af
ci: manually sign apk
BenjaminHalko Sep 13, 2023
60f7d18
ci: changed output name
BenjaminHalko Sep 13, 2023
b4129de
ci: update signing step
BenjaminHalko Sep 13, 2023
81b99c5
ci: updated signing process... again
BenjaminHalko Sep 14, 2023
0933523
ci: changed setup to set up
BenjaminHalko Sep 14, 2023
7b9db1a
ci: updated signing process
BenjaminHalko Sep 15, 2023
21425d2
ci: disable minification
BenjaminHalko Sep 15, 2023
240893f
ci: disable proguard
BenjaminHalko Sep 15, 2023
eb381da
ci: remove attempts to disable minify
BenjaminHalko Sep 15, 2023
d3b8798
ci: rename with commit hash
BenjaminHalko Sep 15, 2023
a5c1b2b
ci: use proper method for getting hash
BenjaminHalko Sep 15, 2023
62e2ad8
ci: remove jdk
BenjaminHalko Sep 15, 2023
36a4e4a
ci: add hash to apk
BenjaminHalko Sep 15, 2023
01bab03
ci: re setup JDK
BenjaminHalko Sep 15, 2023
662e7b6
ci: use short commit hash
BenjaminHalko Sep 15, 2023
2b3ebc1
ci: cleaned up getting commit hash
BenjaminHalko Sep 15, 2023
8f5c8de
ci: added cache
BenjaminHalko Sep 15, 2023
79cbeb9
ci: update checkout
BenjaminHalko Sep 15, 2023
70877a4
ci: renamed tasks
BenjaminHalko Sep 15, 2023
75a1e62
ci: remove node from cache
BenjaminHalko Sep 15, 2023
88bc211
ci: fixed spelling error
BenjaminHalko Sep 15, 2023
29d1d6f
ci: simplify triggers
BenjaminHalko Sep 18, 2023
b2312e4
ci: moved env step
BenjaminHalko Sep 18, 2023
d4cc9b4
ci: added debug param to assembleRelease
BenjaminHalko Sep 18, 2023
4da3cc8
ci: only sign release builds with debug param
BenjaminHalko Sep 18, 2023
73987fd
ci: updated params
BenjaminHalko Sep 18, 2023
f8239c4
ci: fixed formatting of build.gradle.kts
BenjaminHalko Sep 18, 2023
56ef9a1
ci: added newline to workflow file
BenjaminHalko Sep 18, 2023
0f641fe
ci: change sign param to signAsDebug
BenjaminHalko Sep 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build pull request

on:
pull_request:
paths:
- ".github/workflows/pr-build.yml"
- "app/**"
- "gradle/**"
- "build.gradle.kts"
- "gradle.properties"
- "settings.gradle.kts"
BenjaminHalko marked this conversation as resolved.
Show resolved Hide resolved

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set env
run: echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV

- 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: Generate keystore
run: keytool -genkey -v -keystore debugkey.jks -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "O=ReVanced"

- name: Build with Gradle
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew assembleRelease --no-daemon -Pandroid.injected.signing.store.file=$GITHUB_WORKSPACE/debugkey.jks -Pandroid.injected.signing.store.password=android -Pandroid.injected.signing.key.alias=androiddebugkey -Pandroid.injected.signing.key.password=android

- name: Add hash to APK
run: mv app/build/outputs/apk/release/app-release.apk revanced-manager-${{ env.COMMIT_HASH }}.apk
BenjaminHalko marked this conversation as resolved.
Show resolved Hide resolved

- name: Upload build
uses: actions/upload-artifact@v3
with:
name: revanced-manager
path: revanced-manager-${{ env.COMMIT_HASH }}.apk
BenjaminHalko marked this conversation as resolved.
Show resolved Hide resolved
50 changes: 0 additions & 50 deletions .github/workflows/release.yml

This file was deleted.