-
Notifications
You must be signed in to change notification settings - Fork 69
47 lines (43 loc) · 1.1 KB
/
ci-pr-main-cli.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Lb Clmm Cli
on:
pull_request:
branches:
- main
env:
SOLANA_CLI_VERSION: 1.16.1
NODE_VERSION: 18.14.2
ANCHOR_CLI_VERSION: 0.28.0
jobs:
cli_changed_files:
runs-on: ubuntu-latest
outputs:
cli: ${{steps.changed-files-specific.outputs.any_changed}}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get specific changed files
id: changed-files-specific
uses: tj-actions/[email protected]
with:
files: |
cli
cli_build:
runs-on: ubuntu-latest
needs: cli_changed_files
if: needs.cli_changed_files.outputs.cli == 'true'
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-solana
- uses: ./.github/actions/setup-dep
- uses: ./.github/actions/setup-anchor
# Install rust + toolchain
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.76.0
override: true
components: clippy
# Cache rust, cargo
- uses: Swatinem/rust-cache@v1
- run: cargo build -p cli
shell: bash