mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-22 02:38:45 -04:00
Improve buildapp.yml
This commit is contained in:
20
.github/workflows/buildapp.yml
vendored
20
.github/workflows/buildapp.yml
vendored
@@ -21,6 +21,11 @@ on:
|
|||||||
default: "YouTube"
|
default: "YouTube"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
commit_id:
|
||||||
|
description: "(Optional) Commit ID to build at"
|
||||||
|
default: ""
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
create_release:
|
create_release:
|
||||||
description: "Create a draft release"
|
description: "Create a draft release"
|
||||||
default: true
|
default: true
|
||||||
@@ -40,16 +45,17 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Main
|
- name: Checkout Main
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.6
|
||||||
with:
|
with:
|
||||||
path: main
|
path: main
|
||||||
|
ref: ${{ github.event.inputs.commit_id || github.ref }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: brew install ldid dpkg make
|
run: brew install ldid dpkg make
|
||||||
|
|
||||||
- name: Setup Theos
|
- name: Setup Theos
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.6
|
||||||
with:
|
with:
|
||||||
repository: theos/theos
|
repository: theos/theos
|
||||||
ref: 3da31488281ecf4394d10302d2629607f4a1aa07
|
ref: 3da31488281ecf4394d10302d2629607f4a1aa07
|
||||||
@@ -58,9 +64,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Caching
|
- name: Caching
|
||||||
id: SDK
|
id: SDK
|
||||||
uses: actions/cache@v4.0.1
|
uses: actions/cache@v4.0.2
|
||||||
env:
|
env:
|
||||||
cache-name: iOS-16.2-SDK
|
cache-name: iOS-16.4-SDK
|
||||||
with:
|
with:
|
||||||
path: theos/sdks/
|
path: theos/sdks/
|
||||||
key: ${{ env.cache-name }}
|
key: ${{ env.cache-name }}
|
||||||
@@ -77,7 +83,7 @@ jobs:
|
|||||||
THEOS: ${{ github.workspace }}/theos
|
THEOS: ${{ github.workspace }}/theos
|
||||||
|
|
||||||
- name: Setup Theos Jailed
|
- name: Setup Theos Jailed
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.6
|
||||||
with:
|
with:
|
||||||
repository: qnblackcat/theos-jailed
|
repository: qnblackcat/theos-jailed
|
||||||
ref: master
|
ref: master
|
||||||
@@ -131,7 +137,7 @@ jobs:
|
|||||||
TARGET: "iphone:latest:14.0"
|
TARGET: "iphone:latest:14.0"
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4.3.1
|
uses: actions/upload-artifact@v4.3.3
|
||||||
with:
|
with:
|
||||||
name: YTLitePlus_${{ env.YT_VERSION }}_${{ env.YTLITE_VERSION }}
|
name: YTLitePlus_${{ env.YT_VERSION }}_${{ env.YTLITE_VERSION }}
|
||||||
path: ${{ github.workspace }}/main/packages/${{ steps.build_package.outputs.package }}
|
path: ${{ github.workspace }}/main/packages/${{ steps.build_package.outputs.package }}
|
||||||
@@ -145,7 +151,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: softprops/action-gh-release@v2.0.4
|
uses: softprops/action-gh-release@v2.0.5
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
DRAFT: ${{ inputs.create_release }}
|
DRAFT: ${{ inputs.create_release }}
|
||||||
|
Reference in New Issue
Block a user