Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tokens/pda-mint-authority/steel #189

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Perelyn-sama
Copy link

No description provided.

@Perelyn-sama Perelyn-sama changed the title add pda mint authority steel example Add tokens/pda-mint-authority/steel Oct 23, 2024
@heyAyushh heyAyushh added the contribute:steel Adds program example using steel framework. label Nov 5, 2024
@heyAyushh heyAyushh added the pda-mint-authority tokens/pda-mint-authority label Nov 20, 2024
@heyAyushh
Copy link
Contributor

heyAyushh commented Nov 20, 2024

to fix the CI Issues @Perelyn-sama,

1. checkout to main branch
2. change directory to root folder `/program-examples/`
3. `git pull` 
4. pnpm install
5. checkout to your branch
6. merge main branch
7. pnpm fix

@Perelyn-sama
Copy link
Author

Hey @heyAyushh so I think Steel / Rust Checks fails because solana can't be found.

I use a build script here - https://github.com/Perelyn-sama/program-examples/blob/pda-mint-authority/tokens/pda-mint-authority/steel/program/build.rs to get the .so file of the metadata program, so I can I use it in ProgramTest.

Is there something you can do on the gh actions side to make this work? or should I just add the metadata_program.so to the repo?

I'll also add this check in the build script:

    // Check if Solana is installed
    if let Err(err) = check_solana_installation() {
        println!("cargo:warning=Solana check failed: {}", err);
        return;
    }

to make sure my assumption is right.

I tried reproducing this error with act but it passed locally :(

@Perelyn-sama
Copy link
Author

pasting the error here before my next commit resets it all

      Checking mpl-token-metadata v4.1.2
  error: failed to run custom build command for `pda-mint-authority-program v0.1.0 (/home/runner/work/program-examples/program-examples/tokens/pda-mint-authority/steel/program)`
  
  Caused by:
    process didn't exit successfully: `/home/runner/work/program-examples/program-examples/tokens/pda-mint-authority/steel/target/debug/build/pda-mint-authority-program-a1ef98f611132165/build-script-build` (exit status: 101)
    --- stdout
    cargo:rerun-if-changed=build.rs
  
    --- stderr
    thread 'main' panicked at program/build.rs:19:10:
    Failed to run solana program dump command: Os { code: 2, kind: NotFound, message: "No such file or directory" }
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  warning: build failed, waiting for other jobs to finish...
  Error: Process completed with exit code 101.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribute:steel Adds program example using steel framework. pda-mint-authority tokens/pda-mint-authority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants