Cache CMake build directory

This commit is contained in:
Scott Brenner
2024-08-22 18:34:53 -07:00
committed by teejusb
parent a3f3587c19
commit e80380cc12
+32
View File
@@ -14,6 +14,14 @@ jobs:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Cache CMake build directory
uses: actions/cache@v4
with:
path: |
build
key: ${{ runner.os }}-cmake-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-cmake-build-
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y
libasound2-dev
@@ -42,6 +50,14 @@ jobs:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Cache CMake build directory
uses: actions/cache@v4
with:
path: |
build
key: ${{ runner.os }}-${{ runner.arch }}-cmake-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-cmake-build-
- name: Install dependencies
run: brew install
nasm
@@ -57,6 +73,14 @@ jobs:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Cache CMake build directory
uses: actions/cache@v4
with:
path: |
build
key: ${{ runner.os }}-${{ runner.arch }}-cmake-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-cmake-build-
- name: Install dependencies
run: brew install
nasm
@@ -72,6 +96,14 @@ jobs:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Cache CMake build directory
uses: actions/cache@v4
with:
path: |
build
key: ${{ runner.os }}-cmake-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-cmake-build-
- name: Configure
run: cmake -B build -DWITH_FFMPEG_JOBS="$env:NUMBER_OF_PROCESSORS"
- name: Build