Mirror von
https://github.com/Chaoscaot/schemsearch
synchronisiert 2024-11-19 10:20:08 +01:00
Add Caches
Dieser Commit ist enthalten in:
Ursprung
b082d6cd8d
Commit
322ba65656
23
.github/workflows/master-build.yml
vendored
23
.github/workflows/master-build.yml
vendored
@ -16,16 +16,35 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Cache Cargo modules
|
||||||
|
id: cache-cargo
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: cache-cargo-target-debug
|
||||||
|
with:
|
||||||
|
path: target
|
||||||
|
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-${{ env.cache-name }}-
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose -p schemsearch-lib
|
run: cargo test --verbose -p schemsearch-lib
|
||||||
|
|
||||||
build-release:
|
build-release:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Cache Cargo modules
|
||||||
|
id: cache-cargo
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: cache-cargo-target-release
|
||||||
|
with:
|
||||||
|
path: target
|
||||||
|
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-${{ env.cache-name }}-
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose --release -p schemsearch-cli
|
run: cargo build --verbose --release -p schemsearch-cli
|
||||||
- name: Upload a Build Artifact
|
- name: Upload a Build Artifact
|
||||||
|
10
.github/workflows/release-build.yml
vendored
10
.github/workflows/release-build.yml
vendored
@ -19,6 +19,16 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Cache Cargo modules
|
||||||
|
id: cache-cargo
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: cache-cargo-target-release
|
||||||
|
with:
|
||||||
|
path: target
|
||||||
|
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-${{ env.cache-name }}-
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose --release -p schemsearch-cli
|
run: cargo build --verbose --release -p schemsearch-cli
|
||||||
- name: Create Tarball
|
- name: Create Tarball
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren