mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-24 05:22:03 +00:00
ci: install cmake on windows in daily job
it's been failing since forever
This commit is contained in:
parent
f124f22f10
commit
38b6f7263d
11
.github/workflows/cron.yml
vendored
11
.github/workflows/cron.yml
vendored
@ -83,6 +83,7 @@ jobs:
|
|||||||
base-devel
|
base-devel
|
||||||
git
|
git
|
||||||
mingw-w64-i686-toolchain
|
mingw-w64-i686-toolchain
|
||||||
|
mingw-w64-i686-cmake
|
||||||
|
|
||||||
- name: MSYS2 (Windows amd64)
|
- name: MSYS2 (Windows amd64)
|
||||||
if: runner.os == 'Windows' && matrix.target.cpu == 'amd64'
|
if: runner.os == 'Windows' && matrix.target.cpu == 'amd64'
|
||||||
@ -93,6 +94,7 @@ jobs:
|
|||||||
base-devel
|
base-devel
|
||||||
git
|
git
|
||||||
mingw-w64-x86_64-toolchain
|
mingw-w64-x86_64-toolchain
|
||||||
|
mingw-w64-x86_64-cmake
|
||||||
|
|
||||||
- name: Restore Nim DLLs dependencies (Windows) from cache
|
- name: Restore Nim DLLs dependencies (Windows) from cache
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
@ -147,6 +149,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
ncpu=""
|
ncpu=""
|
||||||
|
make_cmd="make"
|
||||||
case '${{ runner.os }}' in
|
case '${{ runner.os }}' in
|
||||||
'Linux')
|
'Linux')
|
||||||
ncpu=$(nproc)
|
ncpu=$(nproc)
|
||||||
@ -156,14 +159,16 @@ jobs:
|
|||||||
;;
|
;;
|
||||||
'Windows')
|
'Windows')
|
||||||
ncpu=${NUMBER_OF_PROCESSORS}
|
ncpu=${NUMBER_OF_PROCESSORS}
|
||||||
|
make_cmd="mingw32-make"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
[[ -z "$ncpu" || $ncpu -le 0 ]] && ncpu=1
|
[[ -z "$ncpu" || $ncpu -le 0 ]] && ncpu=1
|
||||||
echo "ncpu=${ncpu}" >> $GITHUB_ENV
|
echo "ncpu=${ncpu}" >> $GITHUB_ENV
|
||||||
|
echo "make_cmd=${make_cmd}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build Nim and Nimbus dependencies
|
- name: Build Nim and Nimbus dependencies
|
||||||
run: |
|
run: |
|
||||||
make -j ${ncpu} NIM_COMMIT=${{ matrix.branch }} ARCH_OVERRIDE=${PLATFORM} QUICK_AND_DIRTY_COMPILER=1 update
|
${make_cmd} -j ${ncpu} NIM_COMMIT=${{ matrix.branch }} ARCH_OVERRIDE=${PLATFORM} QUICK_AND_DIRTY_COMPILER=1 update
|
||||||
./env.sh nim --version
|
./env.sh nim --version
|
||||||
|
|
||||||
- name: Get latest fixtures commit hash
|
- name: Get latest fixtures commit hash
|
||||||
@ -188,10 +193,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Build all tools
|
- name: Build all tools
|
||||||
run: |
|
run: |
|
||||||
make -j ${ncpu} V=1 NIM_COMMIT=${{ matrix.branch }}
|
${make_cmd} -j ${ncpu} V=1 NIM_COMMIT=${{ matrix.branch }}
|
||||||
# The Windows image runs out of disk space, so make some room
|
# The Windows image runs out of disk space, so make some room
|
||||||
rm -rf nimcache
|
rm -rf nimcache
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
make -j ${ncpu} V=1 NIM_COMMIT=${{ matrix.branch }} DISABLE_TEST_FIXTURES_SCRIPT=1 test
|
${make_cmd} -j ${ncpu} V=1 NIM_COMMIT=${{ matrix.branch }} DISABLE_TEST_FIXTURES_SCRIPT=1 test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user