-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[build] | ||
target = "x86_64-unknown-linux-gnu" | ||
|
||
[term] | ||
verbose = true | ||
|
||
[target.x86_64-unknown-linux-gnu] | ||
rustflags = ["-C", "target-cpu=native", "-C", "opt-level=3"] | ||
|
||
[profile.release] | ||
debug = true | ||
lto = true | ||
opt-level = "z" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[template] | ||
description = "A Solana Anchor project template optimized for IntelliJ RustRover" | ||
version = "0.1.0" | ||
repository = "https://github.com/mars-arch/solana-anchor-rustrover-template" | ||
|
||
[placeholders] | ||
project-name = { type = "string", prompt = "Enter the project name" } | ||
authors = { type = "string", prompt = "Enter the author name(s)" } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Solana Anchor CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build and Test Solana Anchor Program | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checkout the repository | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# Set up Rust environment | ||
- name: Set up Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
|
||
# Install Solana CLI tools | ||
- name: Install Solana CLI | ||
run: | | ||
sh -c "$(curl -sSfL https://release.solana.com/v1.10.31/install)" | ||
# Install Anchor CLI | ||
- name: Install Anchor | ||
run: | | ||
cargo install --git https://github.com/coral-xyz/anchor anchor-cli --locked | ||
# Build the Anchor program | ||
- name: Build Anchor program | ||
run: | | ||
anchor build | ||
# Run tests | ||
- name: Run tests | ||
run: | | ||
anchor test | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
.anchor | ||
.DS_Store | ||
solana-anchor-rustrover-template/target | ||
**/*.rs.bk | ||
node_modules | ||
test-ledger | ||
.yarn |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
.anchor | ||
.DS_Store | ||
target | ||
node_modules | ||
dist | ||
build | ||
test-ledger |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[toolchain] | ||
|
||
[features] | ||
seeds = false | ||
skip-lint = false | ||
|
||
[programs.localnet] | ||
{{project-name}} = "7YukY8tuR2GLzxS9cieRBjwbMidudYcj8R5aACLsbJCw" | ||
|
||
[registry] | ||
url = "https://api.apr.dev" | ||
|
||
[provider] | ||
cluster = "Localnet" | ||
wallet = "~/.config/solana/id.json" | ||
|
||
[scripts] | ||
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[workspace] | ||
members = [ | ||
"programs/*" | ||
] | ||
|
||
[profile.release] | ||
overflow-checks = true | ||
lto = "fat" | ||
codegen-units = 1 | ||
|
||
[profile.release.build-override] | ||
opt-level = 3 | ||
incremental = false | ||
codegen-units = 1 |