aboutsummaryrefslogtreecommitdiff
path: root/.github/actions/setup/action.yml
blob: dfa3101abc23a43f18f8ac6604fbabeb3cad944c (plain) (blame)
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
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