summaryrefslogtreecommitdiff
path: root/.github/workflows/install-espresso/action.yml
blob: fb1d655aafa67545b35247a16dfaee28afc27841 (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
name: Install Espresso

inputs:
  version:
    description: 'version to install'
    required: false
    default: '2.4'

runs:
  using: composite
  steps:
    - id: cache-espresso
      uses: actions/cache@v3
      with:
        path: /usr/local/bin/espresso
        key: espresso-${{ runner.os }}-${{ inputs.version }}

    - shell: bash
      if: steps.cache-espresso.outputs.cache-hit != 'true'
      run: |
        cd /tmp
        wget -q https://github.com/chipsalliance/espresso/releases/download/v${{ inputs.version }}/x86_64-linux-gnu-espresso
        chmod +x x86_64-linux-gnu-espresso
        sudo mv x86_64-linux-gnu-espresso /usr/local/bin/espresso
        espresso || true