Skip to content

Commit

Permalink
Merge pull request #1 from igneous-labs/solanav2-upgrade
Browse files Browse the repository at this point in the history
Solanav2 upgrade
  • Loading branch information
billythedummy authored Nov 20, 2024
2 parents a17eade + f1c5aa1 commit 463eccc
Show file tree
Hide file tree
Showing 100 changed files with 5,839 additions and 13,905 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: build

on:
push:
branches: [ main ]
branches: [ main, migrate_v2]
pull_request:
branches: '*'

Expand All @@ -17,6 +17,11 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.60.0
override: true
components: rustfmt

- name: Check Rust formatting
uses: actions-rs/cargo@v1
Expand All @@ -43,6 +48,10 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.60.0
override: true

- name: cache-build-artifacts
uses: actions/cache@v2
Expand Down Expand Up @@ -71,7 +80,6 @@ jobs:
- name: Run unit tests
run: |
cargo test --manifest-path program/Cargo.toml
cargo test --manifest-path anker/Cargo.toml
cargo test --manifest-path cli/maintainer/Cargo.toml
cargo test --manifest-path cli/listener/Cargo.toml
cargo test --manifest-path cli/common/Cargo.toml
Expand All @@ -91,7 +99,6 @@ jobs:
# But only run the tests for Solido itself, the SPL tests are already
# executed upstream.
RUST_BACKTRACE=1 cargo test-bpf --manifest-path program/Cargo.toml
RUST_BACKTRACE=1 cargo test-bpf --manifest-path anker/Cargo.toml
- name: Build CLI client
run: cargo build --bin solido
Expand Down Expand Up @@ -122,24 +129,18 @@ jobs:
killall -9 solana-test-validator
rm -r test-ledger
- name: Run Anker integration test
run: |
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
validator=$(tests/start_test_validator.py)
tests/airdrop_lamports.sh
tests/test_anker.py
killall -9 solana-test-validator
rm -r test-ledger
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.60.0
override: true
components: rustfmt, clippy

- name: cache-build-artifacts
uses: actions/cache@v2
Expand Down Expand Up @@ -169,23 +170,21 @@ jobs:
# TODO: Pin the exact version with Nix instead, to make it easier to use
# the same version locally.
sudo pip3 install mypy==0.902
rustup component add clippy
cargo install cargo-license --version 0.4.1
- name: Run Clippy
run: |
cargo clippy --manifest-path anker/Cargo.toml -- --deny warnings
cargo clippy --manifest-path cli/common/Cargo.toml -- --deny warnings
cargo clippy --manifest-path cli/listener/Cargo.toml -- --deny warnings
cargo clippy --manifest-path cli/listener/fuzz/Cargo.toml -- --deny warnings
cargo clippy --manifest-path cli/maintainer/Cargo.toml -- --deny warnings
cargo clippy --manifest-path program/Cargo.toml -- --deny warnings
cargo clippy --manifest-path testlib/Cargo.toml -- --deny warnings
- name: Typecheck Python
run: |
git ls-files | grep '\.py$' | xargs mypy --strict
- name: Check license compatibility
run: |
tests/check_licenses.py
- name: Typecheck Python
run: |
git ls-files | grep '\.py$' | xargs mypy
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ New features:
* Solido no longer requires that validators use a 100%-commission account of which Solido
is the withdraw authority. Any vote account can now be used, as long as its commission does
not exceed Solido’s configured maximum commission percentage.
Anchor protocol integration is removed.

**Compatibility**

Expand Down
Loading

0 comments on commit 463eccc

Please sign in to comment.