Skip to content

Commit

Permalink
feat: add extra-build-arguments input
Browse files Browse the repository at this point in the history
  • Loading branch information
imunproductive committed Nov 7, 2024
1 parent 5b50311 commit ca24a62
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ inputs:
description: 'Checkout repository? Defaults to true.'
required: false
default: 'true'
extra-build-arguments:
description: 'Extra arguments to pass to cargo build. Defaults to empty string.'
required: false
default: ''
strip:
description: 'Strip symbols? Defaults to false.'
required: false
Expand Down Expand Up @@ -105,12 +109,12 @@ runs:
if: ${{ inputs.use-zigbuild == 'true' }}
working-directory: ${{ inputs.working-directory }}
shell: bash
run: cargo zigbuild --release --target ${{ inputs.target }}
run: cargo zigbuild --release --target ${{ inputs.target }} ${{ inputs.extra-build-arguments }}
- name: Build
if: ${{ inputs.use-zigbuild != 'true' }}
working-directory: ${{ inputs.working-directory }}
shell: bash
run: cargo build --release --target ${{ inputs.target }}
run: cargo build --release --target ${{ inputs.target }} ${{ inputs.extra-build-arguments }}
- name: Move artifact
working-directory: ${{ inputs.working-directory }}
shell: bash
Expand Down

0 comments on commit ca24a62

Please sign in to comment.