Optimized caches
This commit is contained in:
parent
6b4bc621fd
commit
6f86bedc3b
|
@ -14,5 +14,5 @@ jobs:
|
|||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: audit-apt-decoder-cargo
|
||||
key: audit-apt-decoder
|
||||
- run: CARGO_HOME=/root/.cargo cargo audit
|
|
@ -14,7 +14,8 @@ jobs:
|
|||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-apt-decoder-cargo
|
||||
key: build-apt-decoder
|
||||
restore-keys: audit-apt-decoder
|
||||
- run: CARGO_HOME=~/.cargo cargo build --release
|
||||
|
||||
build-windows:
|
||||
|
@ -24,7 +25,7 @@ jobs:
|
|||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache/restore@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
|
@ -32,7 +33,7 @@ jobs:
|
|||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-apt-decoder-cargo
|
||||
key: build-apt-decoder
|
||||
- run: CARGO_HOME=~/.cargo cargo build --target x86_64-pc-windows-gnu --release
|
||||
|
||||
build-appimage:
|
||||
|
@ -42,7 +43,7 @@ jobs:
|
|||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache/restore@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
|
@ -50,5 +51,5 @@ jobs:
|
|||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-apt-decoder-cargo
|
||||
key: build-apt-decoder
|
||||
- run: CARGO_HOME=~/.cargo PATH=$PATH:$CARGO_HOME/bin x build -r --format appimage
|
|
@ -9,7 +9,7 @@ jobs:
|
|||
image: forgejo.zenerdio.de/sebastian/apt-decoder-ci:v0.2.1
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache/restore@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
|
@ -17,7 +17,7 @@ jobs:
|
|||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-apt-decoder-cargo
|
||||
key: build-apt-decoder
|
||||
- run: CARGO_HOME=~/.cargo cargo build --target x86_64-pc-windows-gnu --release
|
||||
- run: CARGO_HOME=~/.cargo PATH=$PATH:$CARGO_HOME/bin x build -r --format appimage
|
||||
- run: mkdir -p release
|
||||
|
|
Loading…
Reference in New Issue