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

Update to Sylvia 1.2.1 #7

Merged
merged 5 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
38 changes: 30 additions & 8 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,40 @@ jobs:
env:
PROJECT_NAME: project-foo
steps:
- uses: actions/checkout@v4
- uses: cargo-generate/cargo-generate-action@latest
- name: Checkout source
uses: actions/checkout@v4
- name: Generate project
uses: cargo-generate/cargo-generate-action@latest
with:
name: ${{ env.PROJECT_NAME }}
- uses: actions-rs/toolchain@v1
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
profile: minimal
override: true
components: rustfmt, clippy
# we need to move the generated project to a temp folder, away from the template project
# otherwise `cargo` runs would fail
# see https://github.com/rust-lang/cargo/issues/9922
- run: |
mv $PROJECT_NAME ${{ runner.temp }}/
cd ${{ runner.temp }}/$PROJECT_NAME
cargo check
cargo test
- name: Move generated project to temp folder
run: mv $PROJECT_NAME ${{ runner.temp }}/
- name: Test project
working-directory: ${{ runner.temp }}/${{ env.PROJECT_NAME }}
run: cargo test
- name: Clippy project
working-directory: ${{ runner.temp }}/${{ env.PROJECT_NAME }}
run: cargo clippy --all-targets -- -D warnings
- name: Fmt check project
working-directory: ${{ runner.temp }}/${{ env.PROJECT_NAME }}
run: cargo fmt --check
- name: Build WASM binary
working-directory: ${{ runner.temp }}/${{ env.PROJECT_NAME }}
run: cargo wasm
- name: Install cosmwasm-check
working-directory: ${{ runner.temp }}/${{ env.PROJECT_NAME }}
run: cargo install cosmwasm-check
- name: Check contracts
working-directory: ${{ runner.temp }}/${{ env.PROJECT_NAME }}
run: cosmwasm-check target/wasm32-unknown-unknown/release/*.wasm
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
/schema
Cargo.lock
Loading
Loading