Build Template #20
Workflow file for this run
This file contains 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
# Test the builds for the template | |
# | |
# When you got this file through: | |
# cargo generate --git https://github.com/tui-rs-revival/rust-tui-template --name <project-name> | |
# you can deleted it safely. (Above directories also.) | |
# | |
# By the way: Enjoy the template :-) | |
name: "Build Template" | |
on: | |
workflow_dispatch: | |
schedule: | |
# Run once a week at 6pm on Saturday (UTC) | |
- cron: "0 18 * * 6" | |
push: | |
paths-ignore: | |
- "**.md" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
PROJECT_NAME: my-project | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cargo-generate/[email protected] | |
with: | |
name: ${{ env.PROJECT_NAME }} | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
# 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 |