Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit a317e8f

Browse files
author
Joe C
authored
feature gate: add to CI (#5605)
1 parent 46473cb commit a317e8f

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Feature Gate Pull Request
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'feature-gate/**'
7+
- 'ci/*-version.sh'
8+
- '.github/workflows/pull-request-feature-gate.yml'
9+
push:
10+
branches: [master]
11+
paths:
12+
- 'feature-gate/**'
13+
- 'ci/*-version.sh'
14+
- '.github/workflows/pull-request-feature-gate.yml'
15+
16+
jobs:
17+
cargo-test-sbf:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Set env vars
23+
run: |
24+
source ci/rust-version.sh
25+
echo "RUST_STABLE=$rust_stable" >> $GITHUB_ENV
26+
source ci/solana-version.sh
27+
echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV
28+
29+
- uses: actions-rs/toolchain@v1
30+
with:
31+
toolchain: ${{ env.RUST_STABLE }}
32+
override: true
33+
profile: minimal
34+
35+
- uses: actions/cache@v2
36+
with:
37+
path: |
38+
~/.cargo/registry
39+
~/.cargo/git
40+
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}}
41+
42+
- uses: actions/cache@v2
43+
with:
44+
path: |
45+
~/.cargo/bin/rustfilt
46+
key: cargo-sbf-bins-${{ runner.os }}
47+
48+
- uses: actions/cache@v2
49+
with:
50+
path: ~/.cache/solana
51+
key: solana-${{ env.SOLANA_VERSION }}
52+
53+
- name: Install dependencies
54+
run: |
55+
./ci/install-build-deps.sh
56+
./ci/install-program-deps.sh
57+
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
58+
59+
- name: Build and test
60+
run: ./ci/cargo-test-sbf.sh feature-gate

0 commit comments

Comments
 (0)