move i386 testing to nightlies + remove testing of Nim 1.4 (#4103)

* remove i386 target from ci.yml

* add i386 build to nightlies.yml

* don't continue on error for Nim 1.6

* do not test Nim 1.4
This commit is contained in:
Miran 2022-09-17 07:38:18 +02:00 committed by GitHub
parent ef8bab58eb
commit 5a4c2d0a2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 41 deletions

View File

@ -18,8 +18,6 @@ jobs:
target:
- os: linux
cpu: amd64
- os: linux
cpu: i386
- os: macos
cpu: amd64
- os: windows
@ -70,37 +68,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Install build dependencies (Linux i386)
if: runner.os == 'Linux' && matrix.target.cpu == 'i386'
run: |
sudo dpkg --add-architecture i386
sudo apt-fast update -qq
sudo DEBIAN_FRONTEND='noninteractive' apt-fast install \
--no-install-recommends -yq gcc-multilib g++-multilib
mkdir -p external/bin
cat << EOF > external/bin/gcc
#!/bin/bash
exec $(which gcc) -m32 -mno-adx "\$@"
EOF
cat << EOF > external/bin/g++
#!/bin/bash
exec $(which g++) -m32 -mno-adx "\$@"
EOF
chmod 755 external/bin/gcc external/bin/g++
echo "${{ github.workspace }}/external/bin" >> $GITHUB_PATH
- name: MSYS2 (Windows i386)
if: runner.os == 'Windows' && matrix.target.cpu == 'i386'
uses: msys2/setup-msys2@v2
with:
path-type: inherit
msystem: MINGW32
install: >-
base-devel
git
mingw-w64-i686-toolchain
mingw-w64-i686-cmake
- name: MSYS2 (Windows amd64)
if: runner.os == 'Windows' && matrix.target.cpu == 'amd64'
uses: msys2/setup-msys2@v2
@ -158,12 +125,6 @@ jobs:
echo "NIMFLAGS=${NIMFLAGS}" >> $GITHUB_ENV
fi
# libminiupnp / natpmp
if [[ '${{ runner.os }}' == 'Linux' && '${{ matrix.target.cpu }}' == 'i386' ]]; then
export CFLAGS="${CFLAGS} -m32 -mno-adx"
echo "CFLAGS=${CFLAGS}" >> $GITHUB_ENV
fi
ncpu=""
make_cmd="make"
case '${{ runner.os }}' in

View File

@ -21,7 +21,7 @@ jobs:
cpu: amd64
- os: windows
cpu: i386
branch: [version-1-2, version-1-4, version-1-6, devel]
branch: [version-1-2, version-1-6, devel]
include:
- target:
os: linux
@ -42,7 +42,7 @@ jobs:
name: '${{ matrix.target.os }}-${{ matrix.target.cpu }} (Nim ${{ matrix.branch }})'
runs-on: ${{ matrix.builder }}
continue-on-error: ${{ matrix.branch == 'version-1-6' || matrix.branch == 'devel' }}
continue-on-error: ${{ matrix.branch == 'devel' }}
steps:
- name: Checkout
if: ${{ github.event_name != 'pull_request' }}

View File

@ -56,6 +56,52 @@ jobs:
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus_validator_client.sha512sum
retention-days: 2
build-i386:
name: Linux i386 release asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: unstable
- name: Build project
id: make_dist
run: |
make dist-i386
cd dist
ARCHIVE=$(echo *.tar.gz)
tar -xzf ${ARCHIVE}
NEW_ARCHIVE_DIR="nimbus-eth2_Linux_i386_$(date +%Y%m%d)_$(git rev-parse --short=8 HEAD)"
mv ${ARCHIVE%.tar.gz} ${NEW_ARCHIVE_DIR}
tar -czf ${NEW_ARCHIVE_DIR}.tar.gz ${NEW_ARCHIVE_DIR}
cp ${NEW_ARCHIVE_DIR}.tar.gz nimbus-eth2_Linux_i386_nightly_latest.tar.gz
echo "::set-output name=archive::"${NEW_ARCHIVE_DIR}.tar.gz
echo "::set-output name=archive_dir::"${NEW_ARCHIVE_DIR}
- name: Upload archive artefact
uses: actions/upload-artifact@v3
with:
name: Linux_i386_archive
path: |
./dist/${{ steps.make_dist.outputs.archive }}
./dist/nimbus-eth2_Linux_i386_nightly_latest.tar.gz
retention-days: 2
- name: Upload BN checksum artefact
uses: actions/upload-artifact@v3
with:
name: Linux_i386_checksum
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus_beacon_node.sha512sum
retention-days: 2
- name: Upload VC checksum artefact
uses: actions/upload-artifact@v3
with:
name: Linux_i386_checksum
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus_validator_client.sha512sum
retention-days: 2
build-arm64:
name: Linux ARM64 release asset
runs-on: ubuntu-latest