File tree Expand file tree Collapse file tree
.github/actions/setup-componentize-go Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ' setup-componentize-go'
2+ description : ' Setup componentize-go for your Github Actions workflow'
3+ author : ' James Stockton<james.stocktonj@gmail.com>'
4+
5+ inputs :
6+ version :
7+ required : false
8+ description : ' version of componentize-go to setup'
9+
10+ runs :
11+ using : ' composite'
12+ steps :
13+ - name : Cache componentize-go
14+ uses : actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
15+ with :
16+ path : |
17+ ${{ runner.tool_cache }}/componentize-go/${{ inputs.version }}
18+ key : componentize-go-${{ runner.os }}-${{ runner.arch }}-${{ inputs.version }}
19+ - name : Download componentize-go
20+ shell : bash
21+ run : |
22+ bin_name="componentize-go-${{ runner.os }}-${{ runner.arch }}"
23+
24+ # Download release
25+ curl -LO https://github.com/bytecodealliance/componentize-go/releases/download/${{ inputs.version }}/${bin_name}.tar.gz
26+ tar -xvzf ${bin_name}.tar.gz
27+
28+ # Add to cache
29+ cache_dir="${{ runner.tool_cache }}/componentize-go/${{ inputs.version }}"
30+ mkdir -p "${cache_dir}"
31+ cp componentize-go "${cache_dir}"
32+ chmod +x "${cache_dir}/componentize-go"
You can’t perform that action at this time.
0 commit comments