forked from arichornlover/uYouEnhanced
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.7 KB
/
Copy pathcopilot-setup-steps.yml
File metadata and controls
58 lines (48 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: "Copilot Setup Steps"
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
submodules: recursive
- name: Install dependencies (Theos, dpkg, ldid, etc.)
run: |
sudo apt update
sudo apt install -y git perl clang make unzip dpkg-dev
git clone --recursive https://github.com/theos/theos.git $HOME/theos
- name: Export THEOS
run: echo "THEOS=$HOME/theos" >> $GITHUB_ENV
- name: Validate submodules
run: |
echo "Checking submodule status..."
git submodule status
echo "If any submodule is uninitialized or mismatched, Copilot will flag it."
- name: Check for YouTube version mismatch
run: |
echo "Detecting YouTube version used by uYouEnhanced..."
YT_VERSION_FILE=$(grep -R "YouTube" -n ./ | head -n 1 | cut -d: -f1)
echo "Found version reference in: $YT_VERSION_FILE"
echo "This helps Copilot detect when patches break due to upstream updates."
- name: Collect build logs
run: |
mkdir -p build-logs
cp -r ./obj/* build-logs/ 2>/dev/null || true
cp ./packages/*.deb build-logs/ 2>/dev/null || true
echo "Logs collected for Copilot to analyze."
- name: Upload logs for Copilot
uses: actions/upload-artifact@v7
with:
name: uyouenhanced-build-logs
path: build-logs