Skip to content

Commit

Permalink
chore: Bump version of all Rust projects (#735)
Browse files Browse the repository at this point in the history
* 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
3 people authored May 15, 2024
1 parent 20388a6 commit 03831ca
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 10 deletions.
62 changes: 62 additions & 0 deletions .github/actions/setup-and-build-nocheck/action.yml
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"
16 changes: 16 additions & 0 deletions .github/workflows/release-pr-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions js/compressed-token/src/idl/light_compressed_token.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type LightCompressedToken = {
version: '0.3.1';
version: '0.3.2';
name: 'light_compressed_token';
constants: [
{
Expand Down Expand Up @@ -952,7 +952,7 @@ export type LightCompressedToken = {
];
};
export const IDL: LightCompressedToken = {
version: '0.3.1',
version: '0.3.2',
name: 'light_compressed_token',
constants: [
{
Expand Down
4 changes: 2 additions & 2 deletions js/stateless.js/src/idls/account_compression.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type AccountCompression = {
version: '0.3.2';
version: '0.3.3';
name: 'account_compression';
constants: [
{
Expand Down Expand Up @@ -1189,7 +1189,7 @@ export type AccountCompression = {
};

export const IDL: AccountCompression = {
version: '0.3.2',
version: '0.3.3',
name: 'account_compression',
constants: [
{
Expand Down
4 changes: 2 additions & 2 deletions js/stateless.js/src/idls/light_compressed_token.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type LightCompressedToken = {
version: '0.3.1';
version: '0.3.2';
name: 'light_compressed_token';
constants: [
{
Expand Down Expand Up @@ -952,7 +952,7 @@ export type LightCompressedToken = {
];
};
export const IDL: LightCompressedToken = {
version: '0.3.1',
version: '0.3.2',
name: 'light_compressed_token',
constants: [
{
Expand Down
4 changes: 2 additions & 2 deletions js/stateless.js/src/idls/light_registry.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type LightRegistry = {
version: '0.3.1';
version: '0.3.2';
name: 'light_registry';
constants: [
{
Expand Down Expand Up @@ -191,7 +191,7 @@ export type LightRegistry = {
};

export const IDL: LightRegistry = {
version: '0.3.1',
version: '0.3.2',
name: 'light_registry',
constants: [
{
Expand Down
4 changes: 2 additions & 2 deletions js/stateless.js/src/idls/light_system_program.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type LightSystemProgram = {
version: '0.3.1';
version: '0.3.2';
name: 'light_system_program';
constants: [
{
Expand Down Expand Up @@ -835,7 +835,7 @@ export type LightSystemProgram = {
};

export const IDL: LightSystemProgram = {
version: '0.3.1',
version: '0.3.2',
name: 'light_system_program',
constants: [
{
Expand Down

0 comments on commit 03831ca

Please sign in to comment.