chore(bump) Bump Fortuna version (#2901) #980
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Lazer Solana contract test" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- lazer/** | |
- .github/workflows/ci-lazer-solana-contract.yml | |
jobs: | |
lazer-solana-contract-test: | |
name: Lazer Solana contract test | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
working-directory: lazer/contracts/solana | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
cache-workspaces: "lazer/contracts/solana -> target" | |
- name: install taplo | |
run: cargo install --locked [email protected] | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: "package.json" | |
# Libusb is a build requirement for the node-hid package and so pnpm | |
# install will fail if this isn't in the build environment and if a | |
# precompiled binary isn't found. | |
- name: Install libusb | |
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
run_install: true | |
- name: Install Solana Cli | |
run: | | |
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)" | |
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH" | |
- name: Set Solana Cli version | |
run: agave-install init 1.18.26 | |
- name: Create Solana key | |
run: solana-keygen new --no-bip39-passphrase | |
- name: Install Anchor | |
run: | | |
rustup install 1.79.0 | |
# anchor requires nightly for ABI generation and it's broken for more recent nightly versions | |
rustup install nightly-2025-04-15 | |
# This anchor version doesn't build with newer Rust | |
RUSTFLAGS= cargo +1.79.0 install --git https://github.com/coral-xyz/anchor --tag v0.30.1 --locked anchor-cli | |
- name: Run anchor tests | |
run: pnpm run test:anchor | |
- name: check Cargo.toml formatting | |
run: find . -name Cargo.toml -exec taplo fmt --check --diff {} \; | |
- name: Format check | |
run: cargo fmt --all -- --check | |
- name: Clippy check | |
run: cargo clippy --all-targets -- --deny warnings | |
- name: Build contract | |
run: cargo build-sbf | |
- name: test | |
run: cargo test |