mirror of
https://github.com/codex-storage/nim-codex-dht.git
synced 2025-02-12 20:06:48 +00:00
avoid building nim twice
This commit is contained in:
parent
66ed2a05f7
commit
6c979a6b0a
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -142,13 +142,17 @@ jobs:
|
|||||||
echo "ncpu=$ncpu" >> $GITHUB_ENV
|
echo "ncpu=$ncpu" >> $GITHUB_ENV
|
||||||
echo "MAKE_CMD=${MAKE_CMD}" >> $GITHUB_ENV
|
echo "MAKE_CMD=${MAKE_CMD}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build Nim and Nimble
|
- name: Restore Nim toolchain binaries from cache
|
||||||
run: |
|
id: nim-cache
|
||||||
curl -O -L -s -S https://raw.githubusercontent.com/status-im/nimbus-build-system/master/scripts/build_nim.sh
|
uses: actions/cache@v3
|
||||||
env MAKE="${MAKE_CMD} -j${ncpu}" ARCH_OVERRIDE=${PLATFORM} NIM_COMMIT=${{ matrix.branch }} \
|
with:
|
||||||
QUICK_AND_DIRTY_COMPILER=1 QUICK_AND_DIRTY_NIMBLE=1 CC=gcc \
|
path: NimBinaries
|
||||||
bash build_nim.sh nim csources dist/nimble NimBinaries
|
key: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_version }}-cache-${{ env.cache_nonce }}-${{ github.run_id }}
|
||||||
echo '${{ github.workspace }}/nim/bin' >> $GITHUB_PATH
|
restore-keys: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_version }}-cache-${{ env.cache_nonce }}
|
||||||
|
|
||||||
|
- name: Set NIM_COMMIT
|
||||||
|
shell: ${{ inputs.shell }} {0}
|
||||||
|
run: echo "NIM_COMMIT=${{ inputs.nim_version }}" >> ${GITHUB_ENV}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
@ -156,5 +160,5 @@ jobs:
|
|||||||
# https://github.com/status-im/nimbus-eth2/issues/3121
|
# https://github.com/status-im/nimbus-eth2/issues/3121
|
||||||
export NIMFLAGS="-d:nimRawSetjmp"
|
export NIMFLAGS="-d:nimRawSetjmp"
|
||||||
fi
|
fi
|
||||||
make update
|
make -j${ncpu} CI_CACHE=NimBinaries ARCH_OVERRIDE=${PLATFORM} QUICK_AND_DIRTY_COMPILER=1 update
|
||||||
make test
|
make test -j${ncpu}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user