Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ jobs:
uses: ./.github/actions/setup
with:
cargo-cache-key: cargo-program
toolchain: build
solana: true

- name: Build Program
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish-rust-crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
crate_path:
description: Path to directory with crate to release
description: Path to crate
required: true
type: string
level:
Expand Down Expand Up @@ -49,20 +49,20 @@ jobs:
with:
cargo-cache-key: cargo-test-publish-${{ inputs.crate_path }}
cargo-cache-fallback-key: cargo-test-publish
toolchain: format, lint, test
toolchain: build, format, lint, test
solana: true

- name: Format
run: tsx ./scripts/rust.mts format "${{ inputs.crate_path }}"
run: pnpm tsx ./scripts/rust.mts format "${{ inputs.crate_path }}"

- name: Lint
run: tsx ./scripts/rust.mts lint "${{ inputs.crate_path }}"
run: pnpm tsx ./scripts/rust.mts lint "${{ inputs.crate_path }}"

- name: Build Program
run: pnpm program:build

- name: Test
run: tsx ./scripts/rust.mts test "${{ inputs.crate_path }}"
run: pnpm tsx ./scripts/rust.mts test "${{ inputs.crate_path }}"

publish:
name: Publish Rust Crate
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
OPTIONS=""
fi

tsx ./scripts/rust.mts publish ${{ inputs.crate_path }} $LEVEL $OPTIONS
pnpm tsx ./scripts/rust.mts publish ${{ inputs.crate_path }} $LEVEL $OPTIONS

- name: Push Commit and Tag
if: github.event.inputs.dry_run != 'true'
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ edition = "2021"
solana = "2.1.0"

[workspace.metadata.toolchains]
build = "1.81.0"
format = "nightly-2024-08-08"
lint = "nightly-2024-08-08"
test = "nightly-2024-08-08"