Skip to content

Commit

Permalink
Re-organize Action on steps
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Jun 10, 2024
1 parent 4c1aa88 commit 2a7a57e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
name: Sourcemeta
description: Continuous Integration

inputs:
step:
description: Step to run
required: true

runs:
using: composite
steps:
- uses: actions/checkout@v4

# ClangFormat
- if: runner.os == 'windows'
- if: runner.os == 'windows' && inputs.step == 'dependencies'
shell: pwsh
run: pip install clang-format==18.1.5
- if: runner.os != 'windows'
- if: runner.os != 'windows' && inputs.step == 'dependencies'
shell: bash
run: pip install clang-format==18.1.5

# Brewfile
- if: runner.os == 'macos'
- if: runner.os == 'macos' && inputs.step == 'dependencies'
run: if [ -f Brewfile ]; then brew bundle; fi
shell: bash
env:
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_NO_AUTO_UPDATE: 1

# ShellCheck
- if: runner.os == 'windows'
- if: runner.os == 'windows' && inputs.step == 'dependencies'
shell: pwsh
run: choco install shellcheck

Expand Down

0 comments on commit 2a7a57e

Please sign in to comment.