Skip to content

Commit d036267

Browse files
Update GitHub Actions workflow
1 parent 12cbe53 commit d036267

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.github/workflows/dev-release.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ env:
99
DEBIAN_FRONTEND: noninteractive
1010
FORCE_UNSAFE_CONFIGURE: 1
1111
CONFIG_NAME: raspberrypi_armv7_thunder
12+
CCACHE_LIMIT: 3.5G
1213

1314
jobs:
1415
build:
@@ -78,12 +79,6 @@ jobs:
7879
7980
echo "✅ Dependencies installed"
8081
81-
- name: Configure ccache
82-
run: |
83-
ccache -M 3.5G
84-
ccache -z # Zero statistics
85-
echo "✅ ccache configured with 3.5GB limit"
86-
8782
- name: Get git reference
8883
id: ref
8984
run: |
@@ -100,8 +95,8 @@ jobs:
10095
10196
# Initialize config
10297
make -C buildroot \
103-
BR2_EXTERNAL="../buildroot-external-metrological-restricted:../buildroot-external-metrological-open-source" \
104-
O=../../build/$CONFIG_NAME \
98+
BR2_EXTERNAL="../buildroot-external-metrological-open-source" \
99+
O=../build/$CONFIG_NAME \
105100
${CONFIG_NAME}_defconfig
106101
107102
make -C build/$CONFIG_NAME syncconfig
@@ -120,27 +115,19 @@ jobs:
120115
echo "🔨 Building $CONFIG_NAME..."
121116
echo "⏰ Build started at $(date)"
122117
123-
# Initialize defconfig
124-
make -C buildroot \
125-
BR2_EXTERNAL="../buildroot-external-metrological-restricted:../buildroot-external-metrological-open-source" \
126-
O=../../build/$CONFIG_NAME \
127-
${CONFIG_NAME}_defconfig
128-
129118
# Add WPE WebKit parallel build optimization
130119
echo 'BR2_PACKAGE_WPEWEBKIT_ML_PARALLEL_BUILD_JOBS="6"' >> ./build/$CONFIG_NAME/.config
131120
121+
# Compiler cache initial setup
122+
echo 'BR2_CCACHE_INITIAL_SETUP="-M ${CCACHE_LIMIT} -z"' >> ./build/$CONFIG_NAME/.config
123+
132124
make -C build/$CONFIG_NAME syncconfig
133125

134126
# Build with timing
135127
time make -C build/$CONFIG_NAME
136128

137129
echo "✅ Build completed at $(date)"
138130

139-
- name: Show ccache statistics
140-
run: |
141-
echo "📊 ccache Statistics:"
142-
ccache -s
143-
144131
- name: Show build artifacts
145132
run: |
146133
echo "📁 Build artifacts:"

0 commit comments

Comments
 (0)