Skip to content

build(deps): bump cargo-generate/cargo-generate-action from 0.18.3 to 0.18.5 #73

build(deps): bump cargo-generate/cargo-generate-action from 0.18.3 to 0.18.5

build(deps): bump cargo-generate/cargo-generate-action from 0.18.3 to 0.18.5 #73

Workflow file for this run

name: Build Template
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_NAME: rust-gh-example
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run cargo generate
uses: cargo-generate/[email protected]
with:
name: ${{ env.PROJECT_NAME }}
subfolder: template
template_values_file: .github/workflows/template_values.toml
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cargo check
# 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 --tests