Merge pull request #608 from bensuperpc/update_tests

Add cpython build in CI
This commit is contained in:
Bensuperpc 2021-10-08 00:24:22 +02:00 committed by GitHub
commit aa035faef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "no", fmt: "no",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=arm-linux-androideabi",
} }
- { - {
image: "android-arm64", image: "android-arm64",
@ -77,6 +79,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "no", fmt: "no",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=aarch64-linux-android",
} }
- { - {
image: "android-x86", image: "android-x86",
@ -92,6 +96,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "no", fmt: "no",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=i686-linux-android",
} }
- { - {
image: "android-x86_64", image: "android-x86_64",
@ -107,6 +113,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "no", fmt: "no",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=x86_64-linux-android",
} }
# Linux arm64/armv8 images # Linux arm64/armv8 images
- { - {
@ -123,6 +131,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=aarch64-unknown-linux-gnu",
} }
- { - {
image: "linux-arm64-lts", image: "linux-arm64-lts",
@ -138,6 +148,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=aarch64-unknown-linux-gnu",
} }
- { - {
image: "linux-arm64-musl", image: "linux-arm64-musl",
@ -153,6 +165,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=aarch64-linux-musl",
} }
- { - {
image: "linux-arm64-full", image: "linux-arm64-full",
@ -168,6 +182,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=aarch64-unknown-linux-gnu",
} }
# Linux armv5 images # Linux armv5 images
- { - {
@ -184,6 +200,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=armv5-unknown-linux-gnueabi",
} }
- { - {
image: "linux-armv5-musl", image: "linux-armv5-musl",
@ -199,6 +217,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=armv5-unknown-linux-musleabi",
} }
# Linux armv6 images # Linux armv6 images
- { - {
@ -215,6 +235,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=armv6-unknown-linux-gnueabihf",
} }
- { - {
image: "linux-armv6-lts", image: "linux-armv6-lts",
@ -230,6 +252,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=armv6-unknown-linux-gnueabihf",
} }
- { - {
image: "linux-armv6-musl", image: "linux-armv6-musl",
@ -245,6 +269,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=armv6-linux-musleabihf",
} }
# Linux armv7 images # Linux armv7 images
- { - {
@ -261,6 +287,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=armv7-unknown-linux-gnueabi",
} }
- { - {
image: "linux-armv7a", image: "linux-armv7a",
@ -276,6 +304,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=arm-cortexa8_neon-linux-gnueabihf",
} }
- { - {
image: "linux-armv7l-musl", image: "linux-armv7l-musl",
@ -291,6 +321,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=armv7l-linux-musleabihf",
} }
# Linux x86 images # Linux x86 images
- { - {
@ -307,6 +339,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "",
} }
# Linux x86_64 images # Linux x86_64 images
- { - {
@ -323,6 +357,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "",
} }
- { - {
image: "linux-x64-tinycc", image: "linux-x64-tinycc",
@ -338,6 +374,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "no",
cpython_arg: "",
} }
- { - {
image: "linux-x64-clang", image: "linux-x64-clang",
@ -353,6 +391,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "no",
cpython_arg: "",
} }
- { - {
image: "linux-x86_64-full", image: "linux-x86_64-full",
@ -368,6 +408,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=x86_64-buildroot-linux-gnu",
} }
# Linux riscv images # Linux riscv images
- { - {
@ -384,6 +426,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=riscv32-unknown-linux-gnu",
} }
- { - {
image: "linux-riscv64", image: "linux-riscv64",
@ -399,6 +443,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=riscv64-unknown-linux-gnu",
} }
# Linux s390x images # Linux s390x images
- { - {
@ -415,6 +461,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=s390x-ibm-linux-gnu",
} }
# Linux mips images # Linux mips images
- { - {
@ -431,6 +479,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=mips-unknown-linux-gnu",
} }
# Linux ppc64le images # Linux ppc64le images
- { - {
@ -447,6 +497,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=powerpc64le-unknown-linux-gnu",
} }
# Linux m68k images # Linux m68k images
- { - {
@ -463,6 +515,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "no", fmt: "no",
fmt_arg: "", fmt_arg: "",
cpython: "no",
cpython_arg: "--host=x86_64-linux-gnu --build=m68k-unknown-uclinux-uclibc",
} }
# Linux xtensa images # Linux xtensa images
- { - {
@ -479,6 +533,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "no", fmt: "no",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "--host=x86_64-linux-gnu --build=xtensa-fsf-linux-uclibc",
} }
# Windows x86_x64 images # Windows x86_x64 images
- { - {
@ -495,6 +551,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "no",
cpython_arg: "",
} }
- { - {
image: "windows-static-x64-posix", image: "windows-static-x64-posix",
@ -510,6 +568,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "no",
cpython_arg: "",
} }
- { - {
image: "windows-shared-x64", image: "windows-shared-x64",
@ -525,6 +585,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "no",
cpython_arg: "",
} }
- { - {
image: "windows-shared-x64-posix", image: "windows-shared-x64-posix",
@ -540,6 +602,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "no",
cpython_arg: "",
} }
# Windows x86 images # Windows x86 images
- { - {
@ -556,6 +620,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "no",
cpython_arg: "",
} }
- { - {
image: "windows-shared-x86", image: "windows-shared-x86",
@ -571,6 +637,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "no", fmt: "no",
fmt_arg: "", fmt_arg: "",
cpython: "no",
cpython_arg: "",
} }
# Windows arm images # Windows arm images
- { - {
@ -587,6 +655,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "no",
cpython_arg: "",
} }
- { - {
image: "windows-arm64", image: "windows-arm64",
@ -602,6 +672,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "no",
cpython_arg: "",
} }
# manylinux2014 images # manylinux2014 images
- { - {
@ -618,6 +690,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "",
} }
- { - {
image: "manylinux2014-x64", image: "manylinux2014-x64",
@ -633,6 +707,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "yes", fmt: "yes",
fmt_arg: "", fmt_arg: "",
cpython: "yes",
cpython_arg: "",
} }
# - { # - {
# image: "manylinux2014-aarch64", # image: "manylinux2014-aarch64",
@ -648,6 +724,8 @@ jobs:
# C-Plus-Plus_arg: "", # C-Plus-Plus_arg: "",
# fmt: "no", # fmt: "no",
# fmt_arg: "", # fmt_arg: "",
# cpython: "yes",
# cpython_arg: "",
# } # }
# web-wasm images # web-wasm images
- { - {
@ -664,6 +742,8 @@ jobs:
C-Plus-Plus_arg: "", C-Plus-Plus_arg: "",
fmt: "no", fmt: "no",
fmt_arg: "", fmt_arg: "",
cpython: "no",
cpython_arg: "",
} }
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -677,6 +757,7 @@ jobs:
run: make ${{ matrix.arch_name.image }} run: make ${{ matrix.arch_name.image }}
- name: basic test - name: basic test
run: make ${{ matrix.arch_name.image }}.test run: make ${{ matrix.arch_name.image }}.test
# Updated on 28/08/2021
- name: stockfish build test - name: stockfish build test
if: ${{ matrix.arch_name.stockfish == 'yes' }} if: ${{ matrix.arch_name.stockfish == 'yes' }}
run: | run: |
@ -686,12 +767,14 @@ jobs:
./../../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} build ${{ matrix.arch_name.stockfish_arg }} -j2 ./../../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} build ${{ matrix.arch_name.stockfish_arg }} -j2
cd ../.. cd ../..
rm -rf Stockfish rm -rf Stockfish
# Updated on 28/08/2021
- name: ninja build test - name: ninja build test
if: ${{ matrix.arch_name.ninja == 'yes' }} if: ${{ matrix.arch_name.ninja == 'yes' }}
run: | run: |
git clone --depth 1 --branch v1.10.2 https://github.com/ninja-build/ninja.git git clone --depth 1 --branch v1.10.2 https://github.com/ninja-build/ninja.git
cd ninja cd ninja
./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.ninja_arg }} ./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.ninja_arg }}
# Updated on 28/08/2021
- name: openssl build test - name: openssl build test
if: ${{ matrix.arch_name.openssl == 'yes' }} if: ${{ matrix.arch_name.openssl == 'yes' }}
run: | run: |
@ -703,6 +786,7 @@ jobs:
./../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} -j2 ./../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} -j2
cd .. cd ..
rm -rf openssl rm -rf openssl
# Updated on 28/08/2021
- name: C build test - name: C build test
if: ${{ matrix.arch_name.C == 'yes' }} if: ${{ matrix.arch_name.C == 'yes' }}
run: | run: |
@ -712,6 +796,7 @@ jobs:
./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.C_arg }} ./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.C_arg }}
cd .. cd ..
rm -rf C rm -rf C
# Updated on 28/08/2021
- name: C-Plus-Plus build test - name: C-Plus-Plus build test
if: ${{ matrix.arch_name.C-Plus-Plus == 'yes' }} if: ${{ matrix.arch_name.C-Plus-Plus == 'yes' }}
run: | run: |
@ -721,6 +806,7 @@ jobs:
./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.C-Plus-Plus_arg }} ./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.C-Plus-Plus_arg }}
cd .. cd ..
rm -rf C-Plus-Plus rm -rf C-Plus-Plus
# Updated on 28/08/2021
- name: fmt build test - name: fmt build test
if: ${{ matrix.arch_name.fmt == 'yes' }} if: ${{ matrix.arch_name.fmt == 'yes' }}
run: | run: |
@ -729,6 +815,16 @@ jobs:
./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.fmt_arg }} -DFMT_DOC=OFF ./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.fmt_arg }} -DFMT_DOC=OFF
cd .. cd ..
rm -rf fmt rm -rf fmt
# Updated on 05/10/2021
- name: cpython build test
if: ${{ matrix.arch_name.cpython == 'yes' }}
run: |
git clone --depth 1 --branch v3.9.2 https://github.com/python/cpython.git
cd cpython
./../tools/dockcross-command.sh ${{ matrix.arch_name.image }} ./configure ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no --disable-ipv6 ${{ matrix.arch_name.cpython_arg }}
./../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} -j2
cd ..
rm -rf cpython
- name: deploy - name: deploy
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
run: | run: |