-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Bump version of all Rust projects (#735)
* jq rm sudo jq already installed crate order, add missing, all - hc release try committing diffs from release bumps to idl * try rebuild * rm build in yml * add nocheck * test: idl change * test idl change * wip * Include IDL and other changes post build --------- Co-authored-by: Swen <[email protected]> Co-authored-by: GitHub Actions <[email protected]>
- Loading branch information
1 parent
20388a6
commit 03831ca
Showing
7 changed files
with
88 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Setup and build nocheck | ||
description: Checkout sources, install dependencies, build and prepare for tests | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache Rust dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo | ||
**/target | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Cache .local directory | ||
uses: actions/cache@v3 | ||
with: | ||
path: .local | ||
key: ${{ runner.os }}-local-${{ hashFiles('**/install.sh') }} | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
./scripts/install.sh | ||
source ./scripts/devenv.sh | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install pnpm dependencies | ||
shell: bash | ||
run: pnpm install | ||
|
||
- name: Build and prepare for tests | ||
shell: bash | ||
run: | | ||
source ./scripts/devenv.sh | ||
mkdir -p /home/runner/.config/solana/ | ||
solana-keygen new --no-bip39-passphrase -o /home/runner/.config/solana/id.json | ||
npx nx build @lightprotocol/hasher.rs | ||
npx nx build @lightprotocol/programs | ||
npx nx build @lightprotocol/zk-compression-cli | ||
echo "Skip check for git changes" |
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 |
---|---|---|
|
@@ -81,6 +81,22 @@ jobs: | |
cargo release version --execute --no-confirm \ | ||
-p "${{ inputs.crate }}" "${{ inputs.version }}" | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Setup and build nocheck | ||
uses: ./.github/actions/setup-and-build-nocheck | ||
|
||
- name: Commit IDL and other changes | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
git add -A | ||
git commit -m "Include IDL and other changes post build" | ||
- name: Create pull request for all crates | ||
if: inputs.crate == 'all' | ||
uses: peter-evans/create-pull-request@v6 | ||
|
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
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
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