Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci-check-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
components: clippy

- name: Restore Cargo cache
id: cache-restore
uses: actions/cache/restore@v4
with:
path: |
Expand All @@ -95,6 +96,10 @@ jobs:
restore-keys: |
${{ inputs.rust-cache-prefix }}-${{ runner.os }}-cargo-clippy-

- name: Clean target if Cargo.lock changed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: rm -rf target/

- name: Install Protoc
if: ${{ inputs.install-protoc == true }}
uses: arduino/setup-protoc@v3
Expand Down Expand Up @@ -135,6 +140,7 @@ jobs:
components: rustfmt

- name: Restore Cargo cache
id: cache-restore
uses: actions/cache/restore@v4
with:
path: |
Expand All @@ -146,6 +152,10 @@ jobs:
restore-keys: |
${{ inputs.rust-cache-prefix }}-${{ runner.os }}-cargo-formatting-

- name: Clean target if Cargo.lock changed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: rm -rf target/

- name: Run sccache-cache
if: ${{ inputs.use-sccache == true }}
uses: mozilla-actions/sccache-action@v0.0.4
Expand Down Expand Up @@ -180,6 +190,7 @@ jobs:
toolchain: ${{ inputs.rust-toolchain }}

- name: Restore Cargo cache
id: cache-restore
uses: actions/cache/restore@v4
with:
path: |
Expand All @@ -191,6 +202,10 @@ jobs:
restore-keys: |
${{ inputs.rust-cache-prefix }}-${{ runner.os }}-cargo-tests-

- name: Clean target if Cargo.lock changed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: rm -rf target/

- name: Install Protoc
if: ${{ inputs.install-protoc == true }}
uses: arduino/setup-protoc@v3
Expand Down Expand Up @@ -244,6 +259,7 @@ jobs:
toolchain: ${{ inputs.rust-toolchain }}

- name: Restore Cargo cache
id: cache-restore
uses: actions/cache/restore@v4
with:
path: |
Expand All @@ -255,6 +271,10 @@ jobs:
restore-keys: |
${{ inputs.rust-cache-prefix }}-${{ runner.os }}-cargo-tests-suites-

- name: Clean target if Cargo.lock changed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: rm -rf target/

- name: Install Protoc
if: ${{ inputs.install-protoc == true }}
uses: arduino/setup-protoc@v3
Expand Down Expand Up @@ -296,6 +316,7 @@ jobs:
toolchain: ${{ inputs.rust-toolchain-udeps }}

- name: Restore Cargo cache
id: cache-restore
uses: actions/cache/restore@v4
with:
path: |
Expand All @@ -307,6 +328,10 @@ jobs:
restore-keys: |
${{ inputs.rust-cache-prefix }}-${{ runner.os }}-cargo-unused-deps-

- name: Clean target if Cargo.lock changed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: rm -rf target/

- name: Run sccache-cache
if: ${{ inputs.use-sccache == true }}
uses: mozilla-actions/sccache-action@v0.0.4
Expand Down
5 changes: 5 additions & 0 deletions examples/sub-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
toolchain: ${{ vars.RUST_VERSION }}

- name: Restore Cargo cache
id: cache-restore
uses: actions/cache/restore@v4
with:
path: |
Expand All @@ -57,6 +58,10 @@ jobs:
restore-keys: |
v0-rust-${{ runner.os }}-cargo-integration-

- name: Clean target if Cargo.lock changed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: rm -rf target/

- name: "Run Integration Tests"
env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
Expand Down