Skip to content

Commit dc17282

Browse files
committed
ci: update for dev/shm
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
1 parent be53ec4 commit dc17282

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

.gitlab-ci.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
before_script:
22
- export PATH=/usr/lib/ccache:$PATH
3+
- export CCACHE_DIR=/dev/shm/my-ccache-in-memory
34
- export CCACHE_NOCOMPRESS=1
5+
- df -h /dev/shm
46
- echo "Acquire::http::Proxy \"http://192.168.1.10:3142\";" > /etc/apt/apt.conf.d/00aptproxy
57
- apt-get update
68
- apt-get dist-upgrade -yq
@@ -21,14 +23,16 @@ build-debian-14-arm64:
2123
- docker-aarch64-rpi4-ci
2224
stage: build
2325
script:
24-
- mkdir -p /root/.cache/ccache/ || true
2526
- tar --zstd -xf ccache.tar.zst -C / || true
27+
- df -h /dev/shm
2628
- ccache -M 1G
29+
- ccache -sv
30+
- ccache --recompress=uncompressed
2731
- ccache -z
2832
- ./build_u-boot.sh
2933
- ccache -sv
30-
- tar --use-compress-program=zstd -cf ccache.tar.zst /root/.cache/ccache/
31-
- du -sh ccache.tar.zst
34+
- df -h /dev/shm
35+
- tar --use-compress-program='zstd -9' -cf ccache.tar.zst /dev/shm/my-ccache-in-memory
3236

3337
build-debian-13-arm64:
3438
image: robertcnelson/beagle-devscripts-kernel-debian-13-arm64:latest
@@ -41,14 +45,16 @@ build-debian-13-arm64:
4145
- docker-aarch64-rpi4-ci
4246
stage: build
4347
script:
44-
- mkdir -p /root/.cache/ccache/ || true
4548
- tar --zstd -xf ccache.tar.zst -C / || true
49+
- df -h /dev/shm
4650
- ccache -M 1G
51+
- ccache -sv
52+
- ccache --recompress=uncompressed
4753
- ccache -z
4854
- ./build_u-boot.sh
4955
- ccache -sv
50-
- tar --use-compress-program=zstd -cf ccache.tar.zst /root/.cache/ccache/
51-
- du -sh ccache.tar.zst
56+
- df -h /dev/shm
57+
- tar --use-compress-program='zstd -9' -cf ccache.tar.zst /dev/shm/my-ccache-in-memory
5258

5359
pages:
5460
image: robertcnelson/beagle-devscripts-kernel-debian-12-arm64:latest
@@ -61,14 +67,16 @@ pages:
6167
- docker-aarch64-rpi4-ci
6268
stage: build
6369
script:
64-
- mkdir -p /root/.cache/ccache/ || true
6570
- tar --zstd -xf ccache.tar.zst -C / || true
71+
- df -h /dev/shm
6672
- ccache -M 1G
73+
- ccache -sv
74+
- ccache --recompress=uncompressed
6775
- ccache -z
6876
- ./build_u-boot.sh
6977
- ccache -sv
70-
- tar --use-compress-program=zstd -cf ccache.tar.zst /root/.cache/ccache/
71-
- du -sh ccache.tar.zst
78+
- df -h /dev/shm
79+
- tar --use-compress-program='zstd -9' -cf ccache.tar.zst /dev/shm/my-ccache-in-memory
7280
- apindex public
7381
artifacts:
7482
when: on_success

0 commit comments

Comments
 (0)