Skip to content

Commit

Permalink
ci(fix): install Linux dep packages for clippy (#9)
Browse files Browse the repository at this point in the history
Description
Install Linux dependencies for clippy

Motivation and Context
Improve clippy test

How Has This Been Tested?
--

What process can a PR reviewer use to test or verify this change?
---

<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->


Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify

<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->
  • Loading branch information
leet4tari authored Jul 31, 2024
1 parent 497ff08 commit 2a05f94
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
- name: install dependencies (linux)
if: startsWith(runner.os,'Linux')
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends --assume-yes \
libwebkit2gtk-4.0-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf
- name: toolchain
uses: dtolnay/rust-toolchain@stable
with:
Expand Down Expand Up @@ -70,15 +79,6 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
- name: toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: cache cargo files and outputs
if: ${{ ( startsWith(runner.environment,'github-hosted') ) && ( ! startsWith(github.ref, 'refs/tags/v') ) }}
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- name: install dependencies (linux)
if: startsWith(runner.os,'Linux')
run: |
Expand All @@ -88,6 +88,15 @@ jobs:
libappindicator3-dev \
librsvg2-dev \
patchelf
- name: toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: cache cargo files and outputs
if: ${{ ( startsWith(runner.environment,'github-hosted') ) && ( ! startsWith(github.ref, 'refs/tags/v') ) }}
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- name: cargo check
working-directory: ./src-tauri
run: cargo check --release --all-targets --workspace --locked

0 comments on commit 2a05f94

Please sign in to comment.