Added caches
/ build (push) Failing after 15s Details
/ build-windows (push) Failing after 15s Details
/ build-appimage (push) Failing after 14s Details
/ audit (push) Failing after 14s Details

This commit is contained in:
Sebastian 2023-08-01 18:57:36 +02:00
parent b9110e9d86
commit 3af8deffce
2 changed files with 39 additions and 6 deletions

View File

@ -6,4 +6,13 @@ jobs:
image: forgejo.zenerdio.de/sebastian/apt-decoder-ci:v0.1.0
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
- run: export CARGO_HOME=/root/.cargo && cargo audit

View File

@ -6,8 +6,16 @@ jobs:
image: forgejo.zenerdio.de/sebastian/apt-decoder-ci:v0.1.0
steps:
- uses: actions/checkout@v3
- run: export CARGO_HOME=/root/.cargo
- run: cargo build --release
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: export CARGO_HOME=~/.cargo && cargo build --release
build-windows:
runs-on: docker
@ -15,8 +23,16 @@ jobs:
image: forgejo.zenerdio.de/sebastian/apt-decoder-ci:v0.1.0
steps:
- uses: actions/checkout@v3
- run: export CARGO_HOME=/root/.cargo
- run: cargo build --target x86_64-pc-windows-gnu --release
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: export CARGO_HOME=~/.cargo && cargo build --target x86_64-pc-windows-gnu --release
build-appimage:
runs-on: docker
@ -24,5 +40,13 @@ jobs:
image: forgejo.zenerdio.de/sebastian/apt-decoder-ci:v0.1.0
steps:
- uses: actions/checkout@v3
- run: export CARGO_HOME=/root/.cargo
- run: cargo appimage
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: export CARGO_HOME=~/.cargo && cargo appimage