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

Add optional build-app and build-flags options #1

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
# invalidate existing caches.
# Default: "v1"
cache-key: ""
# Compile application using `mix compile`.
# Default: true
build-app: true
# Additional flags to pass to `mix compile`.
# Default: "--all-warnings"
build-flags: ""
```

### Basic Usage
Expand Down
9 changes: 8 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ inputs:
An arbitrary string added to the derived cache key names. Set or change to
invalidate existing caches.
default: "v1"
build-app:
description: Compile application using `mix compile`.
default: true
build-flags:
description: Additional flags to pass to `mix compile`.
default: "--all-warnings"

outputs:
otp-version:
Expand Down Expand Up @@ -105,5 +111,6 @@ runs:
shell: bash

- name: Compile application
run: mix compile
if: inputs.build-app == 'true'
run: mix compile ${{ inputs.build-flags }}
shell: bash