]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
CI/CD: Add ccache to native builds addccache 1670/head
authorFlole998 <Flole998@users.noreply.github.com>
Sun, 10 Mar 2024 10:32:44 +0000 (10:32 +0000)
committerFlole998 <Flole998@users.noreply.github.com>
Fri, 15 Mar 2024 12:54:49 +0000 (12:54 +0000)
.github/workflows/build-ci.yml
.github/workflows/build-cloudsmith.yml

index 64fb7fab1af084b54af8ec08bf1100e2fc0e6bc4..5b2b6f33e71349a96c4dac4065b49b7b33370c96 100644 (file)
@@ -189,6 +189,11 @@ jobs:
         if: startsWith(matrix.container, 'i386') || matrix.container == 'debian:stretch'
       - name: Workaround safe directory
         run: git config --global --add safe.directory /__w/tvheadend/tvheadend
+      - name: ccache
+        uses: hendrikmuhs/ccache-action@v1.2.11
+        with:
+          key: ${{ matrix.container }}
+          save: false
       - name: build
         run: AUTOBUILD_CONFIGURE_EXTRA=--enable-ccache\ --enable-ffmpeg_static\ --enable-hdhomerun_static\ --python=python3 ./Autobuild.sh ${{ (startsWith(matrix.container, 'i386') && '-a i386') || '' }}
       - name: copy-result
@@ -221,6 +226,11 @@ jobs:
       - uses: actions/checkout@v1
       - name: Workaround safe directory
         run: git config --global --add safe.directory /__w/tvheadend/tvheadend
+      - name: ccache
+        uses: hendrikmuhs/ccache-action@v1.2.11
+        with:
+          key: fedora:${{ matrix.releasever }}
+          save: false
       - name: build
         run: ./configure --disable-dvbscan --disable-libfdkaac_static --disable-ffmpeg_static --disable-hdhomerun_static --disable-libfdkaac_static --disable-libopus_static --disable-libtheora_static --disable-libvorbis_static --disable-libvpx_static --disable-libx264_static --disable-libx265_static --enable-libfdkaac --enable-hdhomerun_client --enable-libsystemd_daemon --python=/usr/bin/python3 && make -C rpm build
       - name: copy-result
index d5aa5b3197c76012778c064a09bd37fd999b4950..1769ebfdc5eeccafc66e1d2de528f212c3529352 100644 (file)
@@ -197,6 +197,10 @@ jobs:
         if: startsWith(matrix.container, 'i386') || matrix.container == 'debian:stretch'
       - name: Workaround safe directory
         run: git config --global --add safe.directory /__w/tvheadend/tvheadend
+      - name: ccache
+        uses: hendrikmuhs/ccache-action@v1.2.11
+        with:
+          key: ${{ matrix.container }}
       - name: build
         run: AUTOBUILD_CONFIGURE_EXTRA=--enable-ccache\ --enable-ffmpeg_static\ --enable-hdhomerun_static\ --python=python3 ./Autobuild.sh ${{ (startsWith(matrix.container, 'i386') && '-a i386') || '' }}
         env:
@@ -236,6 +240,10 @@ jobs:
       - uses: actions/checkout@v1
       - name: Workaround safe directory
         run: git config --global --add safe.directory /__w/tvheadend/tvheadend
+      - name: ccache
+        uses: hendrikmuhs/ccache-action@v1.2.11
+        with:
+          key: fedora:${{ matrix.releasever }}
       - name: build
         run: ./configure --disable-dvbscan --disable-libfdkaac_static --disable-ffmpeg_static --disable-hdhomerun_static --disable-libfdkaac_static --disable-libopus_static --disable-libtheora_static --disable-libvorbis_static --disable-libvpx_static --disable-libx264_static --disable-libx265_static --enable-libfdkaac --enable-hdhomerun_client --enable-libsystemd_daemon --python=/usr/bin/python3 && make -C rpm build
       - name: copy-result