diff options
| author | dundargoc <gocdundar@gmail.com> | 2023-11-30 12:05:13 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-12-01 16:59:23 +0100 |
| commit | ce6fefbab9b6a902e725534c91ba3aa1025e5957 (patch) | |
| tree | e9e5945ca27c79e9638f4cd4de23be63877875e0 /.github/actions/setup | |
| parent | 76a30f2bd0f4e5abe906eabcdce092931d712be3 (diff) | |
| download | rneovim-ce6fefbab9b6a902e725534c91ba3aa1025e5957.tar.gz rneovim-ce6fefbab9b6a902e725534c91ba3aa1025e5957.tar.bz2 rneovim-ce6fefbab9b6a902e725534c91ba3aa1025e5957.zip | |
ci: create setup action
This deduplicates common operations.
Diffstat (limited to '.github/actions/setup')
| -rw-r--r-- | .github/actions/setup/action.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml new file mode 100644 index 0000000000..dfa3101abc --- /dev/null +++ b/.github/actions/setup/action.yml @@ -0,0 +1,29 @@ +name: 'setup' +description: "Creates necessary setup for CI" +inputs: + install_flags: + description: 'Install script flags' + required: false + default: '' +runs: + using: "composite" + steps: + - name: Set $BIN_DIR + shell: bash + run: echo "$BIN_DIR" >> $GITHUB_PATH + + - if: ${{ runner.os != 'Windows' }} + name: Set ulimit + shell: bash + run: ulimit -c unlimited + + - if: ${{ runner.os == 'Windows' }} + run: .github/scripts/env.ps1 + shell: pwsh + + - name: Install dependencies + run: ./.github/scripts/install_deps.sh ${{ inputs.install_flags }} + shell: bash + + - name: Cache + uses: ./.github/actions/cache |