init
This commit is contained in:
parent
04285009a7
commit
3680798835
1 changed files with 27 additions and 25 deletions
52
action.yml
52
action.yml
|
|
@ -17,29 +17,31 @@ jobs:
|
|||
nimUrl: "https://nim-lang.org/download/${{env.nimPath}}"
|
||||
|
||||
steps:
|
||||
## Tries to use the cached version of the nim tar ball
|
||||
- name: cache restore
|
||||
id: cachestep1
|
||||
uses: https://code.forgejo.org/actions/cache/restore@v4
|
||||
with:
|
||||
path: ${{env.nimPath}}
|
||||
key: ${{env.nimPath}}
|
||||
- run: echo "OK"
|
||||
|
||||
- name: cache hit
|
||||
run: |
|
||||
if [ ! ${{steps.cachestep1.outputs.cache-hit}} ]; then
|
||||
echo "Download nim tarball"
|
||||
wget ${{env.nimUrl}}
|
||||
fi
|
||||
|
||||
- name: cache save
|
||||
uses: https://code.forgejo.org/actions/cache/save@v4
|
||||
with:
|
||||
path: ${{env.nimPath}}
|
||||
key: ${{steps.cachestep1.outputs.cache-key}}
|
||||
|
||||
- run: tar xvf ${{env.nimPath}}
|
||||
- run: ln -s `pwd`/nim-${{inputs.nimVersion}}/bin/* /usr/bin/
|
||||
- run: gcc --version
|
||||
- run: nim --version
|
||||
- run: nimble --version
|
||||
# ## Tries to use the cached version of the nim tar ball
|
||||
# - name: cache restore
|
||||
# id: cachestep1
|
||||
# uses: https://code.forgejo.org/actions/cache/restore@v4
|
||||
# with:
|
||||
# path: ${{env.nimPath}}
|
||||
# key: ${{env.nimPath}}
|
||||
#
|
||||
# - name: cache hit
|
||||
# run: |
|
||||
# if [ ! ${{steps.cachestep1.outputs.cache-hit}} ]; then
|
||||
# echo "Download nim tarball"
|
||||
# wget ${{env.nimUrl}}
|
||||
# fi
|
||||
#
|
||||
# - name: cache save
|
||||
# uses: https://code.forgejo.org/actions/cache/save@v4
|
||||
# with:
|
||||
# path: ${{env.nimPath}}
|
||||
# key: ${{steps.cachestep1.outputs.cache-key}}
|
||||
#
|
||||
# - run: tar xvf ${{env.nimPath}}
|
||||
# - run: ln -s `pwd`/nim-${{inputs.nimVersion}}/bin/* /usr/bin/
|
||||
# - run: gcc --version
|
||||
# - run: nim --version
|
||||
# - run: nimble --version
|
||||
|
|
|
|||
Loading…
Reference in a new issue