Cache CMake build directory
This commit is contained in:
@@ -14,6 +14,14 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Checkout submodules
|
- name: Checkout submodules
|
||||||
run: git submodule update --init --recursive
|
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
|
- name: Install dependencies
|
||||||
run: sudo apt-get update && sudo apt-get install -y
|
run: sudo apt-get update && sudo apt-get install -y
|
||||||
libasound2-dev
|
libasound2-dev
|
||||||
@@ -42,6 +50,14 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Checkout submodules
|
- name: Checkout submodules
|
||||||
run: git submodule update --init --recursive
|
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
|
- name: Install dependencies
|
||||||
run: brew install
|
run: brew install
|
||||||
nasm
|
nasm
|
||||||
@@ -57,6 +73,14 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Checkout submodules
|
- name: Checkout submodules
|
||||||
run: git submodule update --init --recursive
|
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
|
- name: Install dependencies
|
||||||
run: brew install
|
run: brew install
|
||||||
nasm
|
nasm
|
||||||
@@ -72,6 +96,14 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Checkout submodules
|
- name: Checkout submodules
|
||||||
run: git submodule update --init --recursive
|
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
|
- name: Configure
|
||||||
run: cmake -B build -DWITH_FFMPEG_JOBS="$env:NUMBER_OF_PROCESSORS"
|
run: cmake -B build -DWITH_FFMPEG_JOBS="$env:NUMBER_OF_PROCESSORS"
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
Reference in New Issue
Block a user