feat: migrate template to Tangle EVM architecture (v2 SDK) #130
Workflow file for this run
This file contains hidden or 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
| name: Verify Template | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: [ 'main', 'v2' ] | |
| paths-ignore: | |
| - "**.md" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| PROJECT_NAME: hello-blueprint | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: nightly | |
| - uses: JohnPeel/cargo-generate-action@main | |
| with: | |
| name: ${{ env.PROJECT_NAME }} | |
| arguments: > | |
| --define project-authors="tangle-network" | |
| --define project-description="An example blueprint" | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: "1.88" | |
| - name: Copy generated project | |
| run: cp -r $PROJECT_NAME ${{ runner.temp }}/ | |
| - name: Forge build | |
| run: | | |
| cd ${{ runner.temp }}/$PROJECT_NAME | |
| forge soldeer update -d | |
| forge build | |
| - name: Cargo check | |
| run: | | |
| cd ${{ runner.temp }}/$PROJECT_NAME | |
| cargo check |