From d7192d54fa2b52bcbb8ad1ea9ea38e0c79a53613 Mon Sep 17 00:00:00 2001 From: kcalbxof Date: Wed, 4 Dec 2024 07:53:20 +0300 Subject: [PATCH] Add apt caching to release workflow --- .github/workflows/release.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fbabce33..66cf3f0a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,8 +11,10 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: targets: i686-pc-windows-gnu - - name: Install extra deps - run: sudo apt-get install -y gcc-mingw-w64-i686 + - uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: gcc-mingw-w64-i686 + version: 1.0 - uses: Swatinem/rust-cache@v2 with: @@ -40,8 +42,10 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: targets: x86_64-pc-windows-gnu - - name: Install extra deps - run: sudo apt-get install -y libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev gcc-mingw-w64-i686 gcc-mingw-w64 + - uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev gcc-mingw-w64-i686 gcc-mingw-w64 + version: 1.0 - uses: Swatinem/rust-cache@v2 with: @@ -67,9 +71,10 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: targets: x86_64-pc-windows-gnu - - name: Install extra deps - run: sudo apt-get install -y libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev gcc-mingw-w64-i686 gcc-mingw-w64 - + - uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev gcc-mingw-w64-i686 gcc-mingw-w64 + version: 1.0 - uses: Swatinem/rust-cache@v2 with: workspaces: noita-proxy -> target