mirror of
https://github.com/neovim/neovim.git
synced 2026-04-02 05:39:26 +00:00
This avoids false positives from existing uses of `GITHUB_ENV` and `pull_request_target` that are safe, as well as from cache usage in a workflow that doesn't produce release artifacts.
32 lines
750 B
YAML
32 lines
750 B
YAML
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 # zizmor: ignore[github-env]
|
|
|
|
- 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
|
|
env:
|
|
INSTALL_FLAGS: ${{ inputs.install_flags }}
|
|
run: ./.github/scripts/install_deps.sh ${INSTALL_FLAGS}
|
|
shell: bash
|
|
|
|
- name: Cache
|
|
uses: ./.github/actions/cache
|