Compare commits

...

30 commits
v1 ... master

Author SHA1 Message Date
fe8b8080ec Update action.yml 2025-03-10 20:50:07 +01:00
1ffc65eb0a Update action.yml 2025-03-10 20:41:20 +01:00
9c04817ca2 Update action.yml 2025-03-10 20:38:52 +01:00
269f14a7d9 Update action.yml 2025-03-10 20:36:13 +01:00
2b1116f4c6 Update action.yml 2025-03-10 13:42:28 +01:00
3037231cc5 Update action.yml 2025-03-10 13:21:33 +01:00
0fe09af7b5 ai 2025-03-10 13:18:35 +01:00
6fcbade20a Update action.yml 2025-03-10 13:11:16 +01:00
2115f4c958 Update action.yml 2025-03-10 13:05:56 +01:00
c4e9f274fd Update action.yml 2025-03-10 13:03:47 +01:00
1e40f4a71a Update action.yml 2025-03-10 13:02:40 +01:00
0a4f03f980 Update action.yml 2025-03-10 13:00:59 +01:00
d437c59006 Update action.yml 2025-03-10 12:59:40 +01:00
8e8aaa7cda Update action.yml 2025-03-10 12:56:34 +01:00
477de414da Update action.yml 2025-03-10 12:55:13 +01:00
8d5da6e837 Update action.yml 2025-03-10 12:48:27 +01:00
55c6f0f763 Update action.yml 2025-03-10 12:47:03 +01:00
19cadbee8f Update action.yml 2025-03-10 12:45:45 +01:00
71b40b1ca0 Update action.yml 2025-03-10 12:43:33 +01:00
b5a4fcf531 Update action.yml 2025-03-10 12:42:43 +01:00
8d57832270 Update action.yml 2025-03-10 12:42:03 +01:00
7599ec1aec Update action.yml 2025-03-10 12:41:07 +01:00
David Krause (enthus1ast)
958a5b7e2b init 2025-03-10 12:09:37 +01:00
David Krause (enthus1ast)
f7eb0abf43 init 2025-03-10 12:08:23 +01:00
David Krause (enthus1ast)
3680798835 init 2025-03-10 12:05:58 +01:00
04285009a7 Update action.yml 2025-03-10 12:00:18 +01:00
David Krause (enthus1ast)
f0a3ddf427 ai corrections 2025-03-10 11:55:10 +01:00
David Krause (enthus1ast)
b8ad998003 Merge branch 'master' of https://git.dkrause.org/david/forgejoInstallNim 2025-03-10 11:47:34 +01:00
David Krause (enthus1ast)
c4c3c93857 init 2025-03-10 11:46:55 +01:00
da80e1a311 Update action.yml 2025-03-10 11:20:22 +01:00

View file

@ -3,66 +3,52 @@ description: Install the given nim version
inputs:
nimVersion:
description: a nim version string like 2.2.2 or 2.0.8
description: A nim version string like 2.2.2 or 2.0.8
required: true
os:
description: a os string like "linux" "windows"
description: An OS string like "linux" or "windows"
required: true
runs:
env:
nimPath: "nim-${{inputs.nimVersion}}-${{inputs.os}}_x64.tar.xz"
nimUrl: "https://nim-lang.org/download/${{env.nimPath}}"
using: "composite"
steps:
- name: Set environment variables
run: |
set -x
echo "nimPath=nim-${{ inputs.nimVersion }}-${{ inputs.os }}_x64.tar.xz" >> $GITHUB_ENV
echo $GITHUB_ENV
- name: Set environment variables 2
run: |
set -x
echo "nimUrl=https://nim-lang.org/download/${{ env.nimPath }}" >> $GITHUB_ENV
echo $GITHUB_ENV
## Do some test steps
- uses: actions/checkout@v4
- run: echo start docker
- run: env
- run: cat /etc/apt/sources.list
- run: ls
## 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
uses: actions/cache@v4
with:
path: ${{env.nimPath}}
key: ${{env.nimPath}}
# - name: cache hit
# run: |
# set -x
# test "${{ steps.cachestep1.outputs.cache-hit }}" != true
path: ${{ env.nimPath }}
key: ${{ env.nimPath }}
- name: cache hit
run: |
set -x
if [ ! ${{ steps.cachestep1.outputs.cache-hit }} ]; then
echo "Download nim tarball"
wget ${{env.nimUrl}}
wget ${{ env.nimUrl }}
fi
# # Download if no cache hit
# - run: wget https://nim-lang.org/download/nim-2.2.2-linux_x64.tar.xz
- name: cache save
uses: https://code.forgejo.org/actions/cache/save@v4
uses: actions/cache@v4
with:
path: ${{env.nimPath}}
key: ${{ steps.cachestep1.outputs.cache-primary-key }}
path: ${{ env.nimPath }}
key: ${{ env.nimPath }}
- run: tar xvf ${{env.nimPath}}
- run: ln -s `pwd`/nim-${{inputs.nimVersion}}/bin/* /usr/bin/
- run: mv ${{ env.nimPath }} /opt/${{ env.nimPath }}
- run: cd /opt ; tar xvf ${{ env.nimPath }}
- run: cd /opt ; ln -s `pwd`/nim-${{ inputs.nimVersion }}/bin/* /usr/bin/
- run: gcc --version
- run: nim --version
- run: nimble --version
# - uses: actions/upload-artifact@v3
# with:
# name: myBuild
# path: testRunner
- run: nimble --version