Skip to content

Commit 2165f7a

Browse files
authored
Update pbrp-organization-ci.yml
1 parent 5812279 commit 2165f7a

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

.github/workflows/pbrp-organization-ci.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,41 @@ env:
2424
SFUserName: ${{ secrets.SFUserName }}
2525
TARGET: "pbrp"
2626

27-
#
2827
CCACHE_DIR: ${{ github.workspace }}/.ccache
2928
CCACHE_MAX_SIZE: 5G
3029

3130
jobs:
3231
PBRP_CI:
3332
if: "(! contains(toJSON(github.event.commits.*.message), '[skip-ci]'))"
34-
runs-on: ubuntu-latest
33+
runs-on: ubuntu-latest
3534

3635
steps:
37-
#
36+
# --- PREP & INSTALL ---
37+
- name: Install Build Tools (Fix ccache: command not found)
38+
run: |
39+
sudo apt-get update
40+
# Menginstal ccache secara eksplisit
41+
sudo apt-get install ccache -y
42+
43+
# --- SETUP CACHE ---
3844
- name: Restore ccache
3945
uses: actions/cache@v3
4046
with:
4147
path: ${{ env.CCACHE_DIR }}
42-
#
4348
key: ${{ runner.os }}-ccache-pbrp-${{ github.ref_name }}-${{ hashFiles('build/make/core/build_id.mk') }}
4449
restore-keys: |
4550
${{ runner.os }}-ccache-pbrp-${{ github.ref_name }}-
4651
4752
- name: Configure ccache
4853
run: |
54+
# ccache sekarang sudah terinstal
4955
echo "CCACHE_EXEC=/usr/bin/ccache" >> $GITHUB_ENV
5056
echo "USE_CCACHE=1" >> $GITHUB_ENV
5157
ccache -M ${{ env.CCACHE_MAX_SIZE }}
52-
ccache -z # Reset statistik cache sebelum sinkronisasi
58+
ccache -z
5359
54-
# --- PREP & CHECKS ---
60+
# --- LANJUTKAN DENGAN LANGKAH WORKFLOW ANDA ---
5561
- name: Auto Adapt Manifest
56-
#
5762
run: echo "MANIFEST=https://github.com/PitchBlackRecoveryProject/manifest_pb -b ${{ github.ref_name }}" >> $GITHUB_ENV
5863

5964
- name: Export Release Vars
@@ -62,26 +67,22 @@ jobs:
6267
if [[ ${BUILD_RELEASE_TYPE} == "BETA" ]]; then echo "BETA_BUILD=true" >> $GITHUB_ENV;fi
6368
if [[ ${BUILD_RELEASE_TYPE} == "OFFICIAL" ]]; then echo "PB_OFFICIAL=true" >> $GITHUB_ENV;fi
6469
65-
- name: Set Swap Space
66-
#
67-
uses: pierotofy/set-swap-space@master
68-
with:
69-
swap-size-gb: 12
70-
71-
#
7270
- name: Checkout Cleaning Up Runner Repo
73-
uses: actions/checkout@v2
71+
uses: actions/checkout@v4 # Diperbarui ke v4
7472
with:
7573
repository: PitchBlackRecoveryProject/Cleaner
7674
ref: main
7775
token: ${{ secrets.GH_BOT_TOKEN }}
7876
path: .github/actions/Cleaner
7977
- name: Cleaning
8078
uses: ./.github/actions/Cleaner
81-
82-
#
79+
- name: Set Swap Space
80+
uses: pierotofy/set-swap-space@master
81+
with:
82+
swap-size-gb: 12
83+
8384
- name: Checkout Recovery Compiler Repo
84-
uses: actions/checkout@v2
85+
uses: actions/checkout@v4 # Diperbarui ke v4
8586
with:
8687
repository: erwinabs/Compiler
8788
ref: production

0 commit comments

Comments
 (0)