2023-08-03 22:58:50 +02:00
|
|
|
name: PR Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2023-08-10 14:14:13 +02:00
|
|
|
paths:
|
2023-08-12 08:56:18 +02:00
|
|
|
- ".github/workflows/pr-build.yml"
|
2023-08-10 14:14:13 +02:00
|
|
|
- "android/**"
|
|
|
|
- "assets/**"
|
|
|
|
- "lib/**"
|
|
|
|
|
2023-08-03 22:58:50 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-10 09:43:58 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-08-03 22:58:50 +02:00
|
|
|
with:
|
|
|
|
# Make sure the release step uses its own credentials:
|
|
|
|
# https://github.com/cycjimmy/semantic-release-action#private-packages
|
|
|
|
persist-credentials: false
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup JDK
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
java-version: '11'
|
|
|
|
distribution: 'zulu'
|
|
|
|
- name: Setup Flutter
|
|
|
|
uses: subosito/flutter-action@v2
|
|
|
|
with:
|
|
|
|
channel: 'stable'
|
|
|
|
cache: true
|
|
|
|
- name: Install Flutter dependencies
|
|
|
|
run: flutter pub get
|
|
|
|
- name: Generate files with Builder
|
|
|
|
run: flutter packages pub run build_runner build --delete-conflicting-outputs
|
|
|
|
- name: Build with Flutter
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-08-15 15:55:11 +02:00
|
|
|
run: flutter build apk --debug
|
2023-08-03 22:58:50 +02:00
|
|
|
- name: Upload build
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: revanced-manager
|
2023-09-07 15:41:03 +02:00
|
|
|
path: build/app/outputs/flutter-apk/app-debug.apk
|