mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-04 08:16:19 +00:00
fix gh action script for linux i386
This commit is contained in:
parent
b22828806f
commit
6b8c5c9e91
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@ -69,8 +69,8 @@ jobs:
|
|||||||
chmod 755 external/bin/gcc external/bin/g++
|
chmod 755 external/bin/gcc external/bin/g++
|
||||||
echo '${{ github.workspace }}/external/bin' >> $GITHUB_PATH
|
echo '${{ github.workspace }}/external/bin' >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Restore rocksdb from cache (Macos)
|
- name: Restore rocksdb from cache (Macos/Linux)
|
||||||
if: runner.os == 'Macos'
|
if: runner.os != 'Windows'
|
||||||
id: rocksdb-cache
|
id: rocksdb-cache
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
@ -238,8 +238,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [[ '${{ matrix.target.cpu }}' == 'amd64' ]]; then
|
if [[ '${{ matrix.target.cpu }}' == 'amd64' ]]; then
|
||||||
PLATFORM=x64
|
PLATFORM=x64
|
||||||
|
GOARCH=amd64
|
||||||
else
|
else
|
||||||
PLATFORM=x86
|
PLATFORM=x86
|
||||||
|
GOARCH=386
|
||||||
fi
|
fi
|
||||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
|
||||||
NPROC="${{ matrix.target.NPROC }}"
|
NPROC="${{ matrix.target.NPROC }}"
|
||||||
@ -247,11 +249,8 @@ jobs:
|
|||||||
env CC=gcc make $MAKEFLAGS update
|
env CC=gcc make $MAKEFLAGS update
|
||||||
env CC=gcc make $MAKEFLAGS
|
env CC=gcc make $MAKEFLAGS
|
||||||
build/nimbus --help
|
build/nimbus --help
|
||||||
if [[ '${{ matrix.target.cpu }}' == 'amd64' ]]; then
|
# CC, GOARCH, and CGO_ENABLED are needed to select correct compiler 32/64 bit
|
||||||
# too lazy to debug libnimbus.so and libnimbus.a 32bit build
|
env CC=gcc GOARCH=$GOARCH CXX=g++ CGO_ENABLED=1 make $MAKEFLAGS test test-reproducibility wrappers wrappers-static
|
||||||
# probably only setting CC env like make
|
|
||||||
env CC=gcc make $MAKEFLAGS test test-reproducibility wrappers wrappers-static
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Run nimbus-eth1 tests (Macos)
|
- name: Run nimbus-eth1 tests (Macos)
|
||||||
if: runner.os == 'Macos'
|
if: runner.os == 'Macos'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user