Skip to content

Commit bbd6ccb

Browse files
committed
Combine small steps
1 parent 60250a1 commit bbd6ccb

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535

3636
steps:
37-
- name: Setup System
37+
- name: Setup Build System
3838
run: |
3939
export DEBIAN_FRONTEND=noninteractive
4040
echo "DEBIAN_FRONTEND=noninteractive" >> $GITHUB_ENV
@@ -66,26 +66,19 @@ jobs:
6666
echo "some packages purged"
6767
6868
df -h
69-
70-
- name: Install Repo and Python
71-
run: |
69+
7270
# Install dependencies
71+
echo "Installing Repo and Python"
7372
sudo apt update
7473
sudo apt install -y python3 python-is-python3
7574
7675
mkdir -p ./git-repo
7776
curl -sSL https://storage.googleapis.com/git-repo-downloads/repo > ./git-repo/repo
7877
chmod a+rx ./git-repo/repo
7978
echo "REPO=$GITHUB_WORKSPACE/./git-repo/repo" >> $GITHUB_ENV
80-
81-
- name: Set CONFIG Environment Variable
82-
run: |
83-
CONFIG="${{ inputs.model }}"
84-
85-
# Set CONFIG as an environment variable for future steps
86-
echo "CONFIG=$CONFIG" >> $GITHUB_ENV
8779
88-
echo "CONFIG set to: $CONFIG"
80+
# Set CONFIG Environment Variable
81+
echo "CONFIG=${{ inputs.model }}" >> $GITHUB_ENV
8982
9083
- name: Clone AnyKernel3 and Other Dependencies
9184
run: |
@@ -334,16 +327,14 @@ jobs:
334327
LTO=thin ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} "$BUILD_TYPE"
335328
fi
336329
337-
- name: Copy Images
330+
- name: Create ZIP Files for Different Formats
338331
run: |
339332
echo "Changing to configuration directory: $CONFIG..."
340333
cd "$CONFIG"
341334
342335
echo "Copying Image"
343336
cp ./out/dist/Image ../AnyKernel3/Image
344-
345-
- name: Create ZIP Files for Different Formats
346-
run: |
337+
347338
echo "Navigating to AnyKernel3 directory..."
348339
cd ./AnyKernel3
349340

0 commit comments

Comments
 (0)