-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update nixpkgs and add latest Anchor/Solana versions (#41)
* Update nixpkgs * updates to the build * update nix actions * update github sha of solana 1.17 * solana and Rust updates * cargo output hashes specify * don't build on old macos anymore * build all basic in ci * downgrde rust for 1.13 * fix 1.17 build * force old rust * remove solana 1.7 support * remove cargo.lock for solana 1.7 * remove goki-cli * add anchor cargo.locks * fix cargo.lock patches * readd spl-token-cli and saber-devenv to env * formatting * fix 0.18 * fix nix flake check * fix some hashes * more hashes * more hashes * more hash fixes * hash mismatch * fix hashes again * remove support for really old anchor
- Loading branch information
Showing
49 changed files
with
138,826 additions
and
207 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash -xe | ||
|
||
VERSIONS=( | ||
"0.12.0" | ||
"0.13.2" | ||
"0.15.0" | ||
"0.16.1" | ||
"0.17.0" | ||
"0.18.0" | ||
"0.18.2" | ||
"0.19.0" | ||
"0.20.0" | ||
"0.20.1" | ||
"0.21.0" | ||
"0.22.0" | ||
"0.23.0" | ||
"0.24.0" | ||
"0.24.2" | ||
"0.25.0" | ||
"0.26.0" | ||
"0.27.0" | ||
"0.28.0" | ||
"0.29.0" | ||
) | ||
|
||
for VERSION in "${VERSIONS[@]}"; do | ||
echo "Downloading Cargo.lock@$VERSION" | ||
mkdir -p cargo/v$VERSION | ||
curl https://raw.githubusercontent.com/coral-xyz/anchor/v$VERSION/Cargo.lock >cargo/v$VERSION/Cargo.lock | ||
|
||
PATCH_FILE=./patches/cargo-$VERSION.patch | ||
if [ -f $PATCH_FILE ]; then | ||
echo "We have a patch for $VERSION. Patching" | ||
patch --reject-file=/dev/null --no-backup-if-mismatch -f ./cargo/v$VERSION/Cargo.lock <$PATCH_FILE || { | ||
echo "Patched." | ||
} | ||
fi | ||
done |
Oops, something went wrong.