Skip to content

Commit

Permalink
feat: Add features to check-downstream-compiles (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Aug 16, 2024
1 parent a3f8ab3 commit a027545
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/actions/check-downstream-compiles/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,23 @@ inputs:
required: false
default: 'https'
type: string
features:
description: 'Features to check in addition to the default'
required: false
type: string

runs:
using: "composite"
steps:
- name: Set env
run: |
if [[ ! -z "${{ inputs.features }}" ]]; then
FEATURES="--features ${{ inputs.features }}"
else
FEATURES=""
fi
echo "FEATURES=$FEATURES" | tee -a $GITHUB_ENV
shell: bash
# Assumes at least one dependency in the current workspace is used by the downstream crate
- name: Patch Cargo.toml files in the downstream repo with all uses of the upstream-repo
shell: bash
Expand All @@ -36,4 +49,4 @@ runs:
shell: bash
working-directory: ${{ github.workspace }}/${{ inputs.downstream-path }}
run: |
cargo check --workspace --all-targets
cargo check --workspace --all-targets ${{ env.FEATURES }}

0 comments on commit a027545

Please sign in to comment.