2024-02-21 22:29:44 +01:00
|
|
|
name: Build pull request
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2024-10-10 19:43:01 +02:00
|
|
|
- name: Setup Java
|
|
|
|
uses: actions/setup-java@v4
|
|
|
|
with:
|
|
|
|
distribution: "temurin"
|
|
|
|
java-version: "17"
|
|
|
|
|
2024-02-21 22:29:44 +01:00
|
|
|
- name: Cache Gradle
|
|
|
|
uses: burrunan/gradle-cache-action@v1
|
|
|
|
|
|
|
|
- name: Build
|
2024-02-23 02:23:50 +01:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2024-12-12 23:17:44 +01:00
|
|
|
run: ./gradlew :patches:buildAndroid --no-daemon
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: revanced-patches
|
|
|
|
path: patches/build/libs
|