-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.24 KB
/
verify-template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Verify Template
on:
workflow_dispatch:
pull_request:
push:
branches: [ 'main' ]
paths-ignore:
- "**.md"
concurrency:
group: rust-validation-${{ github.head_ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_NAME: blueprint-template
steps:
- uses: actions/checkout@v4
- name: Install Foundry
run: |
curl -L https://foundry.paradigm.xyz | bash
source "$HOME/.bashrc"
foundryup
echo "$HOME/.foundry/bin" >> $GITHUB_PATH
- name: Verify Forge installation
run: forge --version
- uses: JohnPeel/cargo-generate-action@main
with:
name: ${{ env.PROJECT_NAME }}
arguments: >
--define gh-username="webb-tools"
--define project-description="An example blueprint"
--define project-homepage="https://webb.tools"
--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
cargo check