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
14 changes: 11 additions & 3 deletions .github/workflows/anchor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@ jobs:
# so siblings like "anchor-example/" or nested files such as
# "anchor-example/app/pages/api/foo.ts" can never enter the build list.
function get_projects() {
find . -type d -name "anchor" | grep -vE "$ignore_pattern" | sort
# An empty .ghaignore makes ignore_pattern empty, and `grep -vE ""`
# matches everything, silently emptying the project list - only
# filter when there is actually a pattern.
if [[ -n "$ignore_pattern" ]]; then
find . -type d -name "anchor" | grep -vE "$ignore_pattern" | sort
else
find . -type d -name "anchor" | sort
fi
}

# Filter the full project list down to projects touched by the given
Expand Down Expand Up @@ -164,7 +171,8 @@ jobs:
- uses: pnpm/action-setup@v4
- uses: heyAyushh/setup-anchor@v4.999
with:
anchor-version: 1.0.0
# Pinned to match the anchor-lang/anchor-spl crate version the programs depend on.
anchor-version: 1.1.2
# setup-anchor resolves tags like stable by querying GitHub API for latest release which can fail with 429 errors
solana-cli-version: 3.1.14
- name: Install Surfpool
Expand Down Expand Up @@ -195,7 +203,7 @@ jobs:
return 1
fi

# Sync program IDs (Anchor 1.0.0 requires keypair and declare_id! to match)
# Sync program IDs (Anchor 1.0+ requires keypair and declare_id! to match)
anchor keys sync

# Update IDL address fields to match the synced keys.
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to this repository are documented here.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## [2026-06-30] - Anchor 1.1.2

### Changed

- Upgraded every Anchor program from `anchor-lang`/`anchor-spl` `1.0.0` to the latest stable `1.1.2`, and bumped the Anchor CLI used by `anchor.yml` CI to match (`anchor-version: 1.1.2`).

### Fixed

- `anchor.yml` built no projects when `.ghaignore` was empty: `find … | grep -vE "$ignore_pattern"` treated the empty pattern as "match everything" and dropped the whole list, so the workflow passed without building anything. Guarded the filter (as `native.yml`, `pinocchio.yml` and `solana-asm.yml` already do).
- `vault-strategy` and `perpetual-futures` LiteSVM tests loaded their sibling mock program's `.so` with `include_bytes!`, which is evaluated at compile time. Anchor's IDL build compiles the tests before that sibling `.so` is built, so the build failed. They now read the sibling `.so` at runtime with `std::fs::read`, matching the existing `cross-program-invocation/hand` test.

## [2026-06-12] - Rust + LiteSVM tests everywhere

### Changed
Expand Down
Loading
Loading