summaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions/setup/action.yml
blob: a3ad2e98c5607fd82d1608df0285d5e907e8d2e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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