From: Flole998 Date: Sun, 10 Mar 2024 10:32:44 +0000 (+0000) Subject: CI/CD: Add ccache to native builds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1ab92d5264bc3acb06a29e9ba77f997fa4dd80a;p=thirdparty%2Ftvheadend.git CI/CD: Add ccache to native builds --- diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 64fb7fab1..5b2b6f33e 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -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 diff --git a/.github/workflows/build-cloudsmith.yml b/.github/workflows/build-cloudsmith.yml index d5aa5b319..1769ebfdc 100644 --- a/.github/workflows/build-cloudsmith.yml +++ b/.github/workflows/build-cloudsmith.yml @@ -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