From 3b99766a359e04124eb26ce497a9691e672d0f25 Mon Sep 17 00:00:00 2001 From: rjindael Date: Mon, 17 Jul 2023 23:27:52 -0700 Subject: [PATCH] cache apt packages per ci run (and bug fix) --- .github/workflows/build.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2ca4e0a..2035527 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,11 +16,22 @@ jobs: with: submodules: recursive - - name: Install required packages - run: sudo apt-get update && sudo apt-get install -y git clang cmake ninja-build libboost-dev libogre-1.12-dev libpugixml-dev qt6-base-dev + - uses: awalsh128/cache-apt-pkgs-action@latest + name: Install required packages + with: + version: 1.0 + packages: >- + git + clang + cmake + ninja-build + libboost-dev + Libogre-1.12-dev + libpugixml-dev + qt6-base-dev - name: Generate Ninja build files - run: cmake -G Ninja -B build -D CI -D CMAKE_BUILD_TYPE=${{ matrix.configuration == 'Release' && 'MinSizeRel' || matrix.configuration }} . + run: cmake -G Ninja -B build -DCI -DCMAKE_BUILD_TYPE=${{ matrix.configuration == 'Release' && 'MinSizeRel' || matrix.configuration }} . - name: Build (Ninja) run: ninja -C build @@ -85,7 +96,7 @@ jobs: mingw-w64-${{ matrix.env }}-qt6 - name: Generate Ninja build files - run: cmake -G Ninja -B build -D CMAKE_BUILD_TYPE=${{ matrix.configuration == 'Release' && 'MinSizeRel' || matrix.configuration }} . + run: cmake -G Ninja -B build -DCI -DCMAKE_BUILD_TYPE=${{ matrix.configuration == 'Release' && 'MinSizeRel' || matrix.configuration }} . - name: Build (Ninja) run: ninja -C build