From 0555198c558e17eed4ff3fee9419afa02ee1cbdd Mon Sep 17 00:00:00 2001 From: Louis Beaumont Date: Wed, 31 Jul 2024 09:04:51 +0200 Subject: [PATCH] chore: ci updates --- .github/workflows/release-app.yml | 12 ++++++++++++ .github/workflows/release-cli.yml | 8 ++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml index f0bb9c8c..927b275c 100644 --- a/.github/workflows/release-app.yml +++ b/.github/workflows/release-app.yml @@ -80,6 +80,18 @@ jobs: override: true target: ${{ matrix.target }} + - name: Cache Homebrew packages + if: matrix.platform == 'macos-latest' + uses: actions/cache@v3 + with: + path: | + ~/Library/Caches/Homebrew + /usr/local/Cellar/ffmpeg + /usr/local/Cellar/pkg-config + key: ${{ runner.os }}-brew-${{ hashFiles('.github/workflows/release-cli.yml') }} + restore-keys: | + ${{ runner.os }}-brew- + - name: Cache Pre Build id: cache-pre-build uses: actions/cache@v4 diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml index b6639bd5..862de987 100644 --- a/.github/workflows/release-cli.yml +++ b/.github/workflows/release-cli.yml @@ -56,8 +56,8 @@ jobs: - name: Build with Metal feature run: | - # export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH" - # export PKG_CONFIG_ALLOW_CROSS=1 + export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH" + export PKG_CONFIG_ALLOW_CROSS=1 cargo build --release --features metal --target ${{ matrix.target }} # get the current tag or take latest (in the case of a workflow dispatch) @@ -73,8 +73,8 @@ jobs: - name: Create deployment package run: | - # ls -R target/release - tar -czf screenpipe-${{ env.VERSION }}-${{ matrix.target }}.tar.gz -C target/release screenpipe + ls -R target/ + tar -czf screenpipe-${{ env.VERSION }}-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release screenpipe - name: Calculate SHA256 run: |