This commit is contained in:
David Krause (enthus1ast) 2025-03-10 12:05:58 +01:00
parent 04285009a7
commit 3680798835

View file

@ -17,29 +17,31 @@ jobs:
nimUrl: "https://nim-lang.org/download/${{env.nimPath}}" nimUrl: "https://nim-lang.org/download/${{env.nimPath}}"
steps: steps:
## Tries to use the cached version of the nim tar ball - run: echo "OK"
- name: cache restore
id: cachestep1
uses: https://code.forgejo.org/actions/cache/restore@v4
with:
path: ${{env.nimPath}}
key: ${{env.nimPath}}
- name: cache hit # ## Tries to use the cached version of the nim tar ball
run: | # - name: cache restore
if [ ! ${{steps.cachestep1.outputs.cache-hit}} ]; then # id: cachestep1
echo "Download nim tarball" # uses: https://code.forgejo.org/actions/cache/restore@v4
wget ${{env.nimUrl}} # with:
fi # path: ${{env.nimPath}}
# key: ${{env.nimPath}}
- name: cache save #
uses: https://code.forgejo.org/actions/cache/save@v4 # - name: cache hit
with: # run: |
path: ${{env.nimPath}} # if [ ! ${{steps.cachestep1.outputs.cache-hit}} ]; then
key: ${{steps.cachestep1.outputs.cache-key}} # echo "Download nim tarball"
# wget ${{env.nimUrl}}
- run: tar xvf ${{env.nimPath}} # fi
- run: ln -s `pwd`/nim-${{inputs.nimVersion}}/bin/* /usr/bin/ #
- run: gcc --version # - name: cache save
- run: nim --version # uses: https://code.forgejo.org/actions/cache/save@v4
- run: nimble --version # 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