ai corrections
This commit is contained in:
parent
b8ad998003
commit
f0a3ddf427
1 changed files with 30 additions and 47 deletions
25
action.yml
25
action.yml
|
|
@ -9,16 +9,14 @@ inputs:
|
||||||
description: a os string like "linux" "windows"
|
description: a os string like "linux" "windows"
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
runs:
|
jobs:
|
||||||
using: docker
|
install_nim:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
nimPath: "nim-${{inputs.nimVersion}}-${{inputs.os}}_x64.tar.xz"
|
nimPath: "nim-${{inputs.nimVersion}}-${{inputs.os}}_x64.tar.xz"
|
||||||
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
|
## Tries to use the cached version of the nim tar ball
|
||||||
- name: cache restore
|
- name: cache restore
|
||||||
id: cachestep1
|
id: cachestep1
|
||||||
|
|
@ -27,11 +25,6 @@ runs:
|
||||||
path: ${{env.nimPath}}
|
path: ${{env.nimPath}}
|
||||||
key: ${{env.nimPath}}
|
key: ${{env.nimPath}}
|
||||||
|
|
||||||
# - name: cache hit
|
|
||||||
# run: |
|
|
||||||
# set -x
|
|
||||||
# test "${{ steps.cachestep1.outputs.cache-hit }}" != true
|
|
||||||
|
|
||||||
- name: cache hit
|
- name: cache hit
|
||||||
run: |
|
run: |
|
||||||
if [ ! ${{steps.cachestep1.outputs.cache-hit}} ]; then
|
if [ ! ${{steps.cachestep1.outputs.cache-hit}} ]; then
|
||||||
|
|
@ -39,24 +32,14 @@ runs:
|
||||||
wget ${{env.nimUrl}}
|
wget ${{env.nimUrl}}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# # Download if no cache hit
|
|
||||||
# - run: wget https://nim-lang.org/download/nim-2.2.2-linux_x64.tar.xz
|
|
||||||
|
|
||||||
- name: cache save
|
- name: cache save
|
||||||
uses: https://code.forgejo.org/actions/cache/save@v4
|
uses: https://code.forgejo.org/actions/cache/save@v4
|
||||||
with:
|
with:
|
||||||
path: ${{env.nimPath}}
|
path: ${{env.nimPath}}
|
||||||
key: ${{ steps.cachestep1.outputs.cache-primary-key }}
|
key: ${{steps.cachestep1.outputs.cache-key}}
|
||||||
|
|
||||||
|
|
||||||
- run: tar xvf ${{env.nimPath}}
|
- run: tar xvf ${{env.nimPath}}
|
||||||
- run: ln -s `pwd`/nim-${{inputs.nimVersion}}/bin/* /usr/bin/
|
- run: ln -s `pwd`/nim-${{inputs.nimVersion}}/bin/* /usr/bin/
|
||||||
- run: gcc --version
|
- run: gcc --version
|
||||||
- run: nim --version
|
- run: nim --version
|
||||||
- run: nimble --version
|
- run: nimble --version
|
||||||
|
|
||||||
# - uses: actions/upload-artifact@v3
|
|
||||||
# with:
|
|
||||||
# name: myBuild
|
|
||||||
# path: testRunner
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue