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

Action: Run cargo marker with --all-targets --all-features [--locked] in GitHub action #341

Merged
Merged
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
10 changes: 9 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ runs:
- run: ${GITHUB_ACTION_PATH:?}/scripts/release/install.${{ runner.os == 'Windows' && 'ps1' || 'sh' }}
shell: bash

- run: cargo marker
# Run the check with `--locked` only if there is a `Cargo.lock` file present in the
# repository. Not everyone checks in the `Cargo.lock` file into the version control,
# but if they do they would want this command to run with `--locked` to ensure that
# the lock file is up to date.
- run: |
cargo marker -- --all-targets --all-features${{
hashFiles('./Cargo.lock') != '' && ' --locked' || ''
}}

if: ${{ inputs.install-only == 'false' }}
shell: bash