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