Skip to content

Commit

Permalink
feat(rs): add crate_type config
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Sep 30, 2024
1 parent 64ee429 commit 4d76635
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions template/rs/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"full_name": "Firstname Lastname",
"github_username": "your-org-or-username",

"crate_type": ["bin", "lib"],

"__gh_slug": "{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}",
"__prompts__": {
"project_name": "Enter your project name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- '[v]?[0-9]+.[0-9]+.[0-9]+'

jobs:
{% if crate_type == "bin" %}

{% if cookiecutter.crate_type == "bin" %}
publish:
name: Publishing for {{ "${{ matrix.job.os }}" }}
runs-on: {{ "${{ matrix.job.os }}" }}
Expand Down

0 comments on commit 4d76635

Please sign in to comment.