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

Commit 404466d

Browse files
committed
clean up CI
1 parent 8750d1c commit 404466d

File tree

2 files changed

+9
-53
lines changed

2 files changed

+9
-53
lines changed

.github/workflows/pull-request-account-compression.yml

+7-52
Original file line numberDiff line numberDiff line change
@@ -3,58 +3,6 @@ name: Account Compression Pull Request
33
on: workflow_dispatch
44

55
jobs:
6-
anchor-build-account-compression:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v4
10-
11-
- name: Set env vars
12-
run: |
13-
source ci/rust-version.sh
14-
echo "RUST_STABLE=$rust_stable" >> $GITHUB_ENV
15-
source ci/solana-version.sh
16-
echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV
17-
source ci/install-anchor.sh
18-
echo "ANCHOR_CLI_VERSION=$anchor_cli_version" >> $GITHUB_ENV
19-
20-
- uses: dtolnay/rust-toolchain@master
21-
with:
22-
toolchain: ${{ env.RUST_STABLE }}
23-
24-
- uses: actions/cache@v4
25-
with:
26-
path: |
27-
~/.cargo/registry
28-
~/.cargo/git
29-
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE }}
30-
31-
- uses: actions/cache@v4
32-
with:
33-
path: |
34-
~/.cargo/bin/rustfilt
35-
key: cargo-sbf-bins-${{ runner.os }}
36-
37-
- uses: actions/cache@v4
38-
with:
39-
path: ~/.cache/solana
40-
key: solana-${{ env.SOLANA_VERSION }}
41-
42-
- name: Install dependencies
43-
run: |
44-
./ci/install-build-deps.sh
45-
./ci/install-program-deps.sh
46-
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
47-
48-
- name: Build and test programs
49-
run: ./ci/cargo-test-sbf.sh account-compression
50-
51-
- name: Upload programs
52-
uses: actions/upload-artifact@v3
53-
with:
54-
name: account-compression-programs
55-
path: "account-compression/target/deploy/*.so"
56-
if-no-files-found: error
57-
586
js-test-account-compression:
597
runs-on: ubuntu-latest
608
env:
@@ -73,3 +21,10 @@ jobs:
7321
restore-keys: |
7422
node-
7523
- run: ./ci/js-test-account-compression.sh
24+
- uses: actions/upload-artifact@v3
25+
with:
26+
name: account-compression-programs
27+
path: |
28+
target/deploy/spl_account_compression.so
29+
target/deploy/spl_noop.so
30+
if-no-files-found: error

ci/js-test-account-compression.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
set -e
44
cd "$(dirname "$0")/.."
55
source ./ci/solana-version.sh install
6+
cargo install solana-verify
67

78
set -x
9+
solana-verify build --library-name spl_account_compression && solana-verify build --library-name spl_noop
810
cd account-compression/sdk
911
pnpm install
1012
pnpm build
11-
pnpm build:program
1213
pnpm lint
1314
pnpm test

0 commit comments

Comments
 (0)