From 9d78e70e8f19264e2ce36265911e1347da944f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Mon, 3 Apr 2023 20:03:50 +0200 Subject: [PATCH] Integrate current mixxx-deps with the new build packages --- .github/workflows/build.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c6e5823ba029ad..1f8a1efb300a86 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,8 +59,8 @@ jobs: - name: Check available disk space run: ${{ matrix.check_disk_space }} - - name: Upgrade packages in cache - run: ./vcpkg upgrade --no-dry-run + - name: Remove outdated packages from cache + run: ./vcpkg remove --vcpkg-root=${{ matrix.vcpkg_path }} --outdated --recurse working-directory: ${{ matrix.vcpkg_path }} - name: Build packages @@ -75,7 +75,24 @@ jobs: path: ${{ matrix.vcpkg_path }}/buildtrees/**/*.log - name: Create buildenv archive - run: ./vcpkg export ${{ env.VCPKG_PACKAGES }} --zip --output=${{ env.DEPS_BASE_NAME }}-${{ env.MIXXX_VERSION }}-${{ matrix.vcpkg_triplet }}-${{ steps.vars.outputs.sha_short }} + run: ./vcpkg export ${{ env.VCPKG_PACKAGES }} --raw --output=${{ env.DEPS_BASE_NAME }}-${{ env.MIXXX_VERSION }}-${{ matrix.vcpkg_triplet }}-${{ steps.vars.outputs.sha_short }} + working-directory: ${{ matrix.vcpkg_path }} + + - name: Download ${{ env.DEPS_BASE_NAME }} + id: download-file + uses: carlosperate/download-file-action@v2 + with: + file-url: 'https://downloads.mixxx.org/dependencies/2.3/Windows/mixxx-deps-2.3-x64-windows-049b5ad.zip' + sha256: '82c49c82f54989cca0b35ab331afcb5fed486e929464beeede321583a778940a' + + - name: Inegrate ${{ env.DEPS_BASE_NAME }} + if: ${{ steps.cache.outputs.cache-matched-key == null }} + run: | + cmake -E tar xv ${{ steps.download-file.outputs.file-path }} + cmake -E copy_directory ${{ env.DEPS_BASE_NAME }}-${{ env.MIXXX_VERSION }}-${{ matrix.vcpkg_triplet }}-${{ steps.vars.outputs.sha_short }} mixxx-deps-2.3-x64-windows-049b5ad + cmake -E rm -r ${{ env.DEPS_BASE_NAME }}-${{ env.MIXXX_VERSION }}-${{ matrix.vcpkg_triplet }}-${{ steps.vars.outputs.sha_short }} + cmake -E rename mixxx-deps-2.3-x64-windows-049b5ad ${{ env.DEPS_BASE_NAME }}-${{ env.MIXXX_VERSION }}-${{ matrix.vcpkg_triplet }}-${{ steps.vars.outputs.sha_short }} + cmake -E tar cfv ${{ env.DEPS_BASE_NAME }}-${{ env.MIXXX_VERSION }}-${{ matrix.vcpkg_triplet }}-${{ steps.vars.outputs.sha_short }}.zip --format=zip ${{ env.DEPS_BASE_NAME }}-${{ env.MIXXX_VERSION }}-${{ matrix.vcpkg_triplet }}-${{ steps.vars.outputs.sha_short }} working-directory: ${{ matrix.vcpkg_path }} - name: "[Windows] Install additional tools"