Skip to content

Commit

Permalink
CI: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kcsongor committed Aug 6, 2024
1 parent 12d8423 commit 8f2771a
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/solana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,35 +32,12 @@ jobs:
SOLANA_VERSION="$(awk '/solana-program =/ { print substr($3, 3, length($3)-3) }' Cargo.toml)"
echo "::set-output name=version::${SOLANA_VERSION}"
- name: Cache rust toolchain
uses: actions/cache@v3
env:
cache-name: solana-toolchain
with:
path: |
~/.cargo/bin
~/.rustup
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ steps.toolchain.outputs.version }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
with:
toolchain: ${{ steps.toolchain.outputs.version }}
components: "clippy,rustfmt"

- name: Run `cargo fmt`
run: cargo fmt --check --all --manifest-path Cargo.toml

- name: Run `cargo check`
run: cargo check --workspace --tests --manifest-path Cargo.toml

- name: Run `cargo clippy`
run: cargo clippy --workspace --tests --manifest-path Cargo.toml

- name: Install solana tools
env:
SOLANA_VERSION: ${{ steps.solana.outputs.version }}
Expand Down

0 comments on commit 8f2771a

Please sign in to comment.