mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-11 13:05:37 +02:00
ci: Cover before build failure and registry authentication
This commit is contained in:
parent
89ad88c0ef
commit
5c58f624de
1 changed files with 25 additions and 7 deletions
32
.github/workflows/build_pull_request.yml
vendored
32
.github/workflows/build_pull_request.yml
vendored
|
@ -12,16 +12,16 @@ on:
|
||||||
description: App flavor
|
description: App flavor
|
||||||
default: 'release'
|
default: 'release'
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
- release
|
- release
|
||||||
- debug
|
- debug
|
||||||
- profile
|
- profile
|
||||||
|
|
||||||
# Flutter Configurations,
|
# Flutter Configurations,
|
||||||
# it's recommended to be set when you have problem regarding with flutter itself
|
# it's recommended to be set when you have problem regarding with flutter itself
|
||||||
# For most part you do not need to change this.
|
# For most part you do not need to change this.
|
||||||
|
|
||||||
# Flutter version to use, note that the version had to exist in whether channel
|
# Flutter version to use, note that the version had to exist in whether channel
|
||||||
# to grab
|
# to grab
|
||||||
# Try using exact version or particular version on a specific branch instead of "any"
|
# Try using exact version or particular version on a specific branch instead of "any"
|
||||||
flutter-channel:
|
flutter-channel:
|
||||||
|
@ -36,7 +36,7 @@ on:
|
||||||
flutter-version:
|
flutter-version:
|
||||||
description: Flutter version
|
description: Flutter version
|
||||||
default: '3.29.x'
|
default: '3.29.x'
|
||||||
|
|
||||||
run-name: "Build pull request ${{ inputs.pr-number }}"
|
run-name: "Build pull request ${{ inputs.pr-number }}"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -66,20 +66,26 @@ jobs:
|
||||||
flutter-version: ${{ inputs.flutter-version }}
|
flutter-version: ${{ inputs.flutter-version }}
|
||||||
|
|
||||||
- name: Get dependencies
|
- name: Get dependencies
|
||||||
|
continue-on-error: true
|
||||||
run: flutter pub get
|
run: flutter pub get
|
||||||
|
|
||||||
- name: Generate translations
|
- name: Generate translations
|
||||||
|
continue-on-error: true
|
||||||
run: dart run slang
|
run: dart run slang
|
||||||
|
|
||||||
- name: Generate code files
|
- name: Generate code files
|
||||||
|
continue-on-error: true
|
||||||
run: dart run build_runner build --delete-conflicting-outputs
|
run: dart run build_runner build --delete-conflicting-outputs
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
id: flutter-build
|
id: flutter-build
|
||||||
run: flutter build apk --${{ inputs.app-flavor }}
|
run: flutter build apk --${{ inputs.app-flavor }}
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Prepare comment
|
- name: Prepare comment
|
||||||
|
id: prepare-comment # Added ID for accessing outputs
|
||||||
run: |
|
run: |
|
||||||
COMMIT_HASH=$(git rev-parse --short HEAD)
|
COMMIT_HASH=$(git rev-parse --short HEAD)
|
||||||
if [[ "${{ steps.flutter-build.outcome }}" == "success" ]]; then
|
if [[ "${{ steps.flutter-build.outcome }}" == "success" ]]; then
|
||||||
|
@ -105,10 +111,22 @@ jobs:
|
||||||
|
|
||||||
Details: [_execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**_](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})!
|
Details: [_execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**_](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})!
|
||||||
|
|
||||||
### ⚙️ Workflow run configuration
|
### ⚙️ Workflow Steps
|
||||||
|
|
||||||
- App flavor: ${{ inputs.app-flavor }}
|
| Step | Status |
|
||||||
- Flutter version: ${{ inputs.flutter-version }} (${{ inputs.flutter-channel }})
|
| ------------------------- | :------------------------------------------------------- |
|
||||||
|
| **Get dependencies** | ${{ steps.get-dependencies.outcome || job.status }} |
|
||||||
|
| **Generate translations** | ${{ steps.generate-translations.outcome || job.status }} |
|
||||||
|
| **Generate code files** | ${{ steps.generate-code-files.outcome || job.status }} |
|
||||||
|
| **Build** | ${{ steps.flutter-build.outcome }} |
|
||||||
|
|
||||||
|
### ⚙️ Workflow Configuration
|
||||||
|
|
||||||
|
| Parameter | Value |
|
||||||
|
| :--------------- | :--------------------------------------- |
|
||||||
|
| App flavor | ${{ inputs.app-flavor }} |
|
||||||
|
| Flutter version | ${{ inputs.flutter-version }} |
|
||||||
|
| Flutter channel | ${{ inputs.flutter-channel }} |
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
if: steps.flutter-build.outcome == 'success'
|
if: steps.flutter-build.outcome == 'success'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue