mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-05-06 14:59:30 +00:00
instal nimble v0.20.1
This commit is contained in:
parent
af385ef086
commit
b0f0e01ee6
35
.github/actions/install_nim/action.yml
vendored
35
.github/actions/install_nim/action.yml
vendored
@ -9,9 +9,6 @@ inputs:
|
||||
nim_ref:
|
||||
description: "Nim version"
|
||||
default: "v2.2.6"
|
||||
nimble_ref:
|
||||
description: "Nimble version"
|
||||
default: "v0.20.1"
|
||||
shell:
|
||||
description: "Shell to run commands in"
|
||||
default: "bash --noprofile --norc -e -o pipefail"
|
||||
@ -55,7 +52,7 @@ runs:
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: '${{ github.workspace }}/nim'
|
||||
key: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_ref }}-nimble-${{ inputs.nimble_ref }}
|
||||
key: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_ref }}
|
||||
|
||||
- name: Build Nim
|
||||
shell: ${{ inputs.shell }}
|
||||
@ -64,29 +61,13 @@ runs:
|
||||
rm -rf nim
|
||||
curl -O -L -s -S https://raw.githubusercontent.com/status-im/nimbus-build-system/master/scripts/build_nim.sh
|
||||
env MAKE="${MAKE_CMD} -j${ncpu}" ARCH_OVERRIDE=${PLATFORM} NIM_COMMIT=${{ inputs.nim_ref }} \
|
||||
QUICK_AND_DIRTY_COMPILER=1 CC=gcc \
|
||||
bash build_nim.sh nim csources NimBinaries
|
||||
QUICK_AND_DIRTY_COMPILER=1 QUICK_AND_DIRTY_NIMBLE=1 CC=gcc \
|
||||
bash build_nim.sh nim csources dist/nimble NimBinaries
|
||||
|
||||
- name: Install Nimble from pre-built binary
|
||||
- name: Install Nimble v0.20.1
|
||||
shell: ${{ inputs.shell }}
|
||||
if: ${{ steps.nim-cache.outputs.cache-hit != 'true' && inputs.os != 'Windows' }}
|
||||
if: ${{ steps.nim-cache.outputs.cache-hit != 'true' }}
|
||||
run: |
|
||||
case '${{ inputs.os }}-${{ inputs.cpu }}' in
|
||||
'Linux-amd64')
|
||||
NIMBLE_PLATFORM="linux_amd64"
|
||||
;;
|
||||
'macOS-arm64')
|
||||
NIMBLE_PLATFORM="macosx_arm64"
|
||||
;;
|
||||
'macOS-amd64')
|
||||
NIMBLE_PLATFORM="macosx_x64"
|
||||
;;
|
||||
*)
|
||||
echo "No pre-built nimble for ${{ inputs.os }}-${{ inputs.cpu }}, skipping"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
URL="https://github.com/nim-lang/nimble/releases/download/${{ inputs.nimble_ref }}/nimble-${NIMBLE_PLATFORM}.tar.gz"
|
||||
curl -L "$URL" | tar xz --strip-components=1 \
|
||||
-C '${{ github.workspace }}/nim/bin/'
|
||||
chmod +x '${{ github.workspace }}/nim/bin/nimble'
|
||||
git clone --depth 1 --branch v0.20.1 https://github.com/nim-lang/nimble dist/nimble-0.20.1
|
||||
cd dist/nimble-0.20.1
|
||||
nim c -d:release -o:../../nim/bin/nimble src/nimble
|
||||
|
||||
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -131,7 +131,6 @@ jobs:
|
||||
cpu: ${{ matrix.platform.cpu }}
|
||||
shell: ${{ matrix.shell }}
|
||||
nim_ref: v2.2.6
|
||||
nimble_ref: v0.20.1
|
||||
|
||||
- name: Print Nim and Nimble versions
|
||||
run: |
|
||||
@ -243,7 +242,6 @@ jobs:
|
||||
cpu: ${{ matrix.platform.cpu }}
|
||||
shell: ${{ matrix.shell }}
|
||||
nim_ref: v2.2.6
|
||||
nimble_ref: v0.20.1
|
||||
|
||||
- name: Restore nimbledeps from cache
|
||||
id: nimbledeps-cache
|
||||
@ -332,7 +330,6 @@ jobs:
|
||||
os: ${{ runner.os }}
|
||||
cpu: amd64
|
||||
nim_ref: v2.2.6
|
||||
nimble_ref: v0.20.1
|
||||
|
||||
- name: Print Nim and Nimble versions
|
||||
run: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user