diff --git a/.github/workflows/verify-template.yml b/.github/workflows/verify-template.yml index f4bc71c..d4b4f4f 100644 --- a/.github/workflows/verify-template.yml +++ b/.github/workflows/verify-template.yml @@ -14,15 +14,19 @@ jobs: PROJECT_NAME: blueprint-template steps: - uses: actions/checkout@v4 + - name: Install Foundry run: | curl -L https://foundry.paradigm.xyz | bash - source /Users/runner/.bashrc + source /home/runner/.bashrc foundryup - - name: Add Foundry to PATH - run: echo "${HOME}/.foundry/bin" >> $GITHUB_PATH - - name: Verify Forge installation - run: forge --version + + - name: Add Foundry to PATH + run: echo "${HOME}/.foundry/bin" >> $GITHUB_PATH + + - name: Verify Forge installation + run: forge --version + - uses: JohnPeel/cargo-generate-action@main with: name: ${{ env.PROJECT_NAME }} @@ -33,9 +37,11 @@ jobs: --define flakes=true --define docker=true --define base-image="rustlang/rust:nightly" + - uses: dtolnay/rust-toolchain@stable with: toolchain: stable + - run: | cp -r $PROJECT_NAME ${{ runner.temp }}/ cd ${{ runner.temp }}/$PROJECT_NAME