mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-10-30 00:05:03 -04:00
CI/build improvements
- use cache restore keys so that there's some caching even after deps change - don't install ffmpeg stuff that hasn't been needed in a while
This commit is contained in:
parent
dac0f44ed8
commit
2667dd68cb
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -28,9 +28,12 @@ jobs:
|
|||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
~/.cargo/git
|
~/.cargo/git
|
||||||
server/target
|
server/target
|
||||||
key: ${{ matrix.rust }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
cargo-${{ matrix.rust }}-
|
||||||
|
cargo-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt-get update && sudo apt-get install libavcodec-dev libavformat-dev libavutil-dev libncurses-dev libsqlite3-dev pkgconf
|
run: sudo apt-get update && sudo apt-get install libncurses-dev libsqlite3-dev pkgconf
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@ -184,9 +184,6 @@ most non-Rust dependencies:
|
|||||||
```console
|
```console
|
||||||
$ sudo apt-get install \
|
$ sudo apt-get install \
|
||||||
build-essential \
|
build-essential \
|
||||||
libavcodec-dev \
|
|
||||||
libavformat-dev \
|
|
||||||
libavutil-dev \
|
|
||||||
libncurses-dev \
|
libncurses-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
pkgconf \
|
pkgconf \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user