Skip to content
Open
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
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ name: Main

on:
push:
branches: [main]
branches: [ main ]
pull_request:

env:
JS_PACKAGES: "['clients-js']"
RUST_PACKAGES: "['clients-rust', 'interface', 'program']"
RUST_PACKAGES: "['clients-rust', 'interface', 'program', 'pinocchio-interface']"
SBPF_PROGRAM_PACKAGES: "['program']"
WASM_PACKAGES: "['interface', 'program']"
IDL_PACKAGES: "['interface']"
MIRI_PACKAGES: "['pinocchio-interface']"

jobs:
set_env:
Expand All @@ -22,6 +23,7 @@ jobs:
RUST_PACKAGES: ${{ steps.compute.outputs.RUST_PACKAGES }}
WASM_PACKAGES: ${{ steps.compute.outputs.WASM_PACKAGES }}
IDL_PACKAGES: ${{ steps.compute.outputs.IDL_PACKAGES }}
MIRI_PACKAGES: ${{ steps.compute.outputs.MIRI_PACKAGES }}
RUST_TOOLCHAIN_NIGHTLY: ${{ steps.compute.outputs.RUST_TOOLCHAIN_NIGHTLY }}
SOLANA_CLI_VERSION: ${{ steps.compute.outputs.SOLANA_CLI_VERSION }}
steps:
Expand All @@ -37,6 +39,7 @@ jobs:
echo "RUST_PACKAGES=${{ env.RUST_PACKAGES }}" >> $GITHUB_OUTPUT
echo "WASM_PACKAGES=${{ env.WASM_PACKAGES }}" >> $GITHUB_OUTPUT
echo "IDL_PACKAGES=${{ env.IDL_PACKAGES }}" >> $GITHUB_OUTPUT
echo "MIRI_PACKAGES=${{ env.MIRI_PACKAGES }}" >> $GITHUB_OUTPUT
echo "RUST_TOOLCHAIN_NIGHTLY=$(make rust-toolchain-nightly)" >> "$GITHUB_OUTPUT"
echo "SOLANA_CLI_VERSION=$(make solana-cli-version)" >> "$GITHUB_OUTPUT"

Expand All @@ -47,6 +50,8 @@ jobs:
js-packages: ${{ needs.set_env.outputs.JS_PACKAGES }}
sbpf-program-packages: ${{ needs.set_env.outputs.SBPF_PROGRAM_PACKAGES }}
rust-packages: ${{ needs.set_env.outputs.RUST_PACKAGES }}
miri-packages: ${{ needs.set_env.outputs.MIRI_PACKAGES }}
miri-toolchain: ${{ needs.set_env.outputs.RUST_TOOLCHAIN_NIGHTLY }}
wasm-packages: ${{ needs.set_env.outputs.WASM_PACKAGES }}
idl-packages: ${{ needs.set_env.outputs.IDL_PACKAGES }}
wasm-toolchain: ${{ needs.set_env.outputs.RUST_TOOLCHAIN_NIGHTLY }}
Expand Down
39 changes: 39 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ members = [
"clients/rust",
"interface",
"program",
"pinocchio/interface",
]

[workspace.package]
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ test-js-%:
test-%:
SBF_OUT_DIR=$(PWD)/target/deploy cargo $(nightly) test --manifest-path $(call make-path,$*)/Cargo.toml $(ARGS)

miri-%:
cargo $(nightly) miri test --manifest-path $(call make-path,$*)/Cargo.toml $(ARGS)

lint-js-%:
cd $(call make-path,$*) && pnpm install && pnpm lint $(ARGS)

Expand Down
Loading