Optimized caches
/ audit (push) Has been cancelled Details
/ build-windows (push) Has been cancelled Details
/ build-appimage (push) Has been cancelled Details
/ build (push) Has been cancelled Details
/ publish-release (push) Successful in 4m56s Details

This commit is contained in:
Sebastian 2023-08-02 18:32:41 +02:00
parent 6b4bc621fd
commit 6f86bedc3b
3 changed files with 9 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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