Skip to content

Commit

Permalink
cache apt packages per ci run (and bug fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjindael committed Jul 18, 2023
1 parent 2fce755 commit 3b99766
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3b99766

Please sign in to comment.