Skip to content

Commit

Permalink
- Update build workflows
Browse files Browse the repository at this point in the history
- Add payload_dumper functionality to PixelFlasher to handle OTA files, thanks to @vm03 for sharing source code.
- Added rules engine code to better / easier management of the UI widgets enabling / disabling.
- Auto detect Pixel OTA image and extract boot / init_boot / vbmeta for patching and flashing.
- Add Full OTA mode, which flashes full OTA image, while optionally retaining root, and best of all, for A/B devices, both slots are bootable, you can even have one rooted and one not.
  • Loading branch information
Bing committed Jun 1, 2023
1 parent 991c54d commit 5ec5e0a
Show file tree
Hide file tree
Showing 19 changed files with 1,476 additions and 355 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:

jobs:
analyze:
if: ${{ github.actor == 'badabing2005' || env.ACT }}
name: Analyze
runs-on: ubuntu-latest
permissions:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/mac_11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
build_mac_11:
if: github.actor == 'badabing2005'
if: ${{ github.actor == 'badabing2005' || env.ACT }}
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
# runs-on: macos-latest
runs-on: macos-11
Expand Down Expand Up @@ -70,12 +70,19 @@ jobs:

# Upload artifcats Mac-OS 11
- name: Upload Mac-OS 11 Artifact
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} # Only run this step when running in GitHub Actions
uses: actions/upload-artifact@v3
id: upload_artifact_macos_11
with:
name: PixelFlasher_MacOS_11.dmg
path: dist/PixelFlasher.dmg

# Copy the artifact to a local directory
- name: Copy MacOS 11 Artifact locally
if: ${{ env.ACT }} # Only run this step when not running in GitHub Actions
run: |
cp dist/PixelFlasher.dmg dist/PixelFlasher_MacOS_11.dmg
# # Create a release
# - name: Create Release
# id: create_release
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/mac_13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
build_mac_13:
if: github.actor == 'badabing2005'
if: ${{ github.actor == 'badabing2005' || env.ACT }}
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
# runs-on: macos-latest
runs-on: macos-13
Expand Down Expand Up @@ -70,12 +70,19 @@ jobs:

# Upload artifcats Mac-OS 13 to Actions
- name: Upload Mac-OS 13 Artifact
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} # Only run this step when running in GitHub Actions
uses: actions/upload-artifact@v3
id: upload_artifact_macos_13
with:
name: PixelFlasher_MacOS_13.dmg
path: dist/PixelFlasher.dmg

# Copy the artifact to a local directory
- name: Copy MacOS 13 Artifact locally
if: ${{ env.ACT }} # Only run this step when not running in GitHub Actions
run: |
cp dist/PixelFlasher.dmg dist/PixelFlasher_MacOS_13.dmg
# # Create a release
# - name: Create Release
# id: create_release
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/mint_21_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
build_mint_21_1:
if: github.actor == 'badabing2005'
if: ${{ github.actor == 'badabing2005' || env.ACT }}
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -63,9 +63,16 @@ jobs:

# Upload artifcats Mint 21.1 to Actions
- name: Upload Mint 21.1 Artifact
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} # Only run this step when running in GitHub Actions
uses: actions/upload-artifact@v3
id: upload_artifacts_mint_21_1
with:
name: PixelFlasher_Mint_21_1
path: dist/PixelFlasher

# Copy the artifact to a local directory
- name: Copy Mint 21.1 Artifact locally
if: ${{ env.ACT }} # Only run this step when not running in GitHub Actions
run: |
cp dist/PixelFlasher dist/PixelFlasher_Mint_21_1
9 changes: 8 additions & 1 deletion .github/workflows/ubuntu_20_04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
build_ubuntu_20_04:
if: github.actor == 'badabing2005'
if: ${{ github.actor == 'badabing2005' || env.ACT }}
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
runs-on: ubuntu-20.04

Expand Down Expand Up @@ -63,12 +63,19 @@ jobs:

# Upload artifcats Ubuntu 20.04 to Actions
- name: Upload Ubuntu 20.04 Artifact
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} # Only run this step when running in GitHub Actions
uses: actions/upload-artifact@v3
id: upload_artifacts_ubuntu_20_04
with:
name: PixelFlasher_Ubuntu_20_04
path: dist/PixelFlasher

# Copy the artifact to a local directory
- name: Copy Mint 21.1 Artifact locally
if: ${{ env.ACT }} # Only run this step when not running in GitHub Actions
run: |
cp dist/PixelFlasher dist/PixelFlasher_Ubuntu_20_04
# # Create a release
# - name: Create Release
# id: create_release
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/ubuntu_22_04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
build_ubuntu_22_04:
if: github.actor == 'badabing2005'
if: ${{ github.actor == 'badabing2005' || env.ACT }}
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
runs-on: ubuntu-latest

Expand Down Expand Up @@ -61,12 +61,19 @@ jobs:

# Upload artifcats Ubuntu 22.04 to Actions
- name: Upload Ubuntu 22.04 Artifact
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} # Only run this step when running in GitHub Actions
uses: actions/upload-artifact@v3
id: upload_artifacts_ubuntu_22_04
with:
name: PixelFlasher_Ubuntu_22_04
path: dist/PixelFlasher

# Copy the artifact to a local directory
- name: Copy Ubuntu 22.04 Artifact locally
if: ${{ env.ACT }} # Only run this step when not running in GitHub Actions
run: |
cp dist/PixelFlasher dist/PixelFlasher_Ubuntu_22_04
# # Create a release
# - name: Create Release
# id: create_release
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/windows_2022.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
build_windows:
if: github.actor == 'badabing2005'
if: ${{ github.actor == 'badabing2005' || env.ACT }}
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
runs-on: windows-latest

Expand Down Expand Up @@ -64,12 +64,19 @@ jobs:

# Upload artifcats Windows to Actions
- name: Upload Windows Artifact
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} # Only run this step when running in GitHub Actions
uses: actions/upload-artifact@v3
id: upload_artifacts_windows
with:
name: PixelFlasher.exe
path: dist/PixelFlasher.exe

# Copy the artifact to a local directory
- name: Copy Windows Artifact locally
if: ${{ env.ACT }} # Only run this step when not running in GitHub Actions
run: |
cp dist/PixelFlasher dist/PixelFlasher.exe
# # Create a release
# - name: Create Release
# id: create_release
Expand Down
Loading

0 comments on commit 5ec5e0a

Please sign in to comment.