name: Dockcross CI on: push: branches: - "*" paths-ignore: - "**.md" pull_request: branches: - "*" paths-ignore: - "**.md" workflow_dispatch: jobs: base: name: base runs-on: ubuntu-latest steps: - name: checkout code uses: actions/checkout@v3 with: submodules: "recursive" fetch-depth: 1 - name: build run: make base - name: test run: make base.test - name: archive base run: | mkdir -p cache docker save dockcross/base:latest | xz -e9 -T0 > ./cache/base.tar.xz - name: save base uses: actions/upload-artifact@v3 with: name: cache path: ./cache retention-days: 1 - name: deploy if: github.ref == 'refs/heads/master' run: | docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }} docker image push dockcross/base --all-tags image: name: ${{ matrix.arch_name.image }} needs: base runs-on: ubuntu-latest strategy: fail-fast: false matrix: arch_name: # Android images - { image: "android-arm", stockfish: "yes", stockfish_arg: "ARCH=armv7 COMP=ndk", ninja: "no", ninja_arg: "", openssl: "yes", openssl_arg: "android-arm no-shared", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "no", fmt_arg: "", cpython: "no", cpython_arg: "--host=arm-linux-androideabi --target=arm-linux-androideabi", } - { image: "android-arm64", stockfish: "yes", stockfish_arg: "ARCH=armv8 COMP=ndk", ninja: "no", ninja_arg: "", openssl: "yes", openssl_arg: "android-arm64 no-shared", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "no", fmt_arg: "", cpython: "no", cpython_arg: "--host=aarch64-linux-android --target=aarch64-linux-android", } - { image: "android-x86", stockfish: "yes", stockfish_arg: "ARCH=x86-32 COMP=ndk", ninja: "no", ninja_arg: "", openssl: "yes", openssl_arg: "android-x86 no-shared", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "no", fmt_arg: "", cpython: "no", cpython_arg: "--host=i686-linux-android --target=i686-linux-android", } - { image: "android-x86_64", stockfish: "yes", stockfish_arg: "ARCH=x86-64 COMP=ndk", ninja: "no", ninja_arg: "", openssl: "yes", openssl_arg: "android-x86_64 no-shared", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "no", fmt_arg: "", cpython: "no", cpython_arg: "--host=x86_64-linux-android --target=x86_64-linux-android", } # Linux arm64/armv8 images - { image: "linux-arm64", stockfish: "yes", stockfish_arg: "ARCH=armv8", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-aarch64", C: "yes", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=aarch64-unknown-linux-gnu --target=aarch64-unknown-linux-gnu", } - { image: "linux-arm64-lts", stockfish: "yes", stockfish_arg: "ARCH=armv8", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-aarch64", C: "yes", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=aarch64-unknown-linux-gnu --target=aarch64-unknown-linux-gnu", } - { image: "linux-arm64-musl", stockfish: "yes", stockfish_arg: "ARCH=armv8", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-aarch64", C: "yes", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=aarch64-linux-musl --target=aarch64-linux-musl", } - { image: "linux-arm64-full", stockfish: "yes", stockfish_arg: "ARCH=armv8", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-aarch64", C: "yes", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=aarch64-buildroot-linux-gnu --target=aarch64-buildroot-linux-gnu", } # Linux mipel images - { image: "linux-mipsel-lts", stockfish: "no", stockfish_arg: "", ninja: "no", ninja_arg: "", openssl: "no", openssl_arg: "", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "no", cpython_arg: "", } # Linux armv5 images - { image: "linux-armv5", stockfish: "no", stockfish_arg: "", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-armv4", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=armv5-unknown-linux-gnueabi --target=armv5-unknown-linux-gnueabi", } - { image: "linux-armv5-musl", stockfish: "no", stockfish_arg: "", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-armv4", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=armv5-unknown-linux-musleabi --target=armv5-unknown-linux-musleabi", } - { image: "linux-armv5-uclibc", stockfish: "no", stockfish_arg: "", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-armv4", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=arm-unknown-linux-uclibcgnueabi --target=arm-unknown-linux-uclibcgnueabi", } # Linux armv6 images - { image: "linux-armv6", stockfish: "no", stockfish_arg: "", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-armv4", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=armv6-unknown-linux-gnueabihf --target=armv6-unknown-linux-gnueabihf", } - { image: "linux-armv6-lts", stockfish: "no", stockfish_arg: "", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-armv4", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=armv6-unknown-linux-gnueabihf --target=armv6-unknown-linux-gnueabihf", } - { image: "linux-armv6-musl", stockfish: "no", stockfish_arg: "", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-armv4", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=armv6-linux-musleabihf --target=armv6-linux-musleabihf", } # Linux armv7 images - { image: "linux-armv7", stockfish: "yes", stockfish_arg: "ARCH=armv7", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-armv4", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=armv7-unknown-linux-gnueabi --target=armv7-unknown-linux-gnueabi", } - { image: "linux-armv7a", stockfish: "yes", stockfish_arg: "ARCH=armv7-neon", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-armv4", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=arm-cortexa8_neon-linux-gnueabihf --target=arm-cortexa8_neon-linux-gnueabihf", } - { image: "linux-armv7a-lts", stockfish: "yes", stockfish_arg: "ARCH=armv7-neon", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-armv4", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=arm-cortexa8_neon-linux-gnueabihf --target=arm-cortexa8_neon-linux-gnueabihf", } - { image: "linux-armv7-lts", stockfish: "yes", stockfish_arg: "ARCH=armv7", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-armv4", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=armv7-unknown-linux-gnueabi --target=armv7-unknown-linux-gnueabi", } - { image: "linux-armv7l-musl", stockfish: "yes", stockfish_arg: "ARCH=armv7", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-armv4", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=armv7l-linux-musleabihf --target=armv7l-linux-musleabihf", } # Linux x86 images - { image: "linux-x86", stockfish: "yes", stockfish_arg: "ARCH=x86-32-sse41-popcnt", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-x86", C: "yes", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "", } # Linux x86_64 images - { image: "linux-x64", stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-x86_64", C: "yes", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "", } - { image: "linux-x64-tinycc", stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-generic64 no-tests no-asm no-hw no-dtls no-shared no-dso", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "no", cpython_arg: "", } - { image: "linux-x64-clang", stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern COMP=clang", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-x86_64-clang", C: "yes", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "", } - { image: "linux-x86_64-full", stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-x86_64", C: "yes", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=x86_64-buildroot-linux-gnu --target=x86_64-buildroot-linux-gnu", } # Linux riscv images - { image: "linux-riscv32", stockfish: "no", stockfish_arg: "", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-generic32", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=riscv32-unknown-linux-gnu --target=riscv32-unknown-linux-gnu", } - { image: "linux-riscv64", stockfish: "no", stockfish_arg: "", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-generic64", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=riscv64-unknown-linux-gnu --target=riscv64-unknown-linux-gnu", } # Linux s390x images - { image: "linux-s390x", stockfish: "no", stockfish_arg: "", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux64-s390x", C: "yes", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=s390x-ibm-linux-gnu --target=s390x-ibm-linux-gnu", } # Linux mips images - { image: "linux-mips", stockfish: "no", stockfish_arg: "", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-generic32", C: "yes", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=mips-unknown-linux-gnu --target=mips-unknown-linux-gnu", } # Linux mips images - { image: "linux-mips-lts", stockfish: "no", stockfish_arg: "", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-generic32", C: "yes", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=mips-unknown-linux-gnu --target=mips-unknown-linux-gnu", } # Linux ppc64le images - { image: "linux-ppc64le", stockfish: "yes", stockfish_arg: "ARCH=ppc-64", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-ppc64le", C: "yes", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "--host=powerpc64le-unknown-linux-gnu --target=powerpc64le-unknown-linux-gnu", } # Linux m68k images - { image: "linux-m68k-uclibc", stockfish: "no", stockfish_arg: "", ninja: "no", ninja_arg: "", openssl: "no", openssl_arg: "linux-generic32 no-asm no-threads no-engine no-hw no-weak-ssl-ciphers no-dtls no-shared no-dso", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "no", fmt_arg: "", cpython: "no", cpython_arg: "--host=m68k-unknown-uclinux-uclibc --target=m68k-unknown-uclinux-uclibc", } # Linux xtensa images - { image: "linux-xtensa-uclibc", stockfish: "no", stockfish_arg: "", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-generic64 no-asm no-threads no-engine no-hw no-weak-ssl-ciphers no-dtls no-shared no-dso", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "no", fmt_arg: "", cpython: "yes", cpython_arg: "--host=xtensa-fsf-linux-uclibc --target=xtensa-fsf-linux-uclibc", } # Windows x86_x64 images - { image: "windows-static-x64", stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern COMP=mingw", ninja: "no", ninja_arg: "", openssl: "no", openssl_arg: "mingw64 no-asm", C: "no", C_arg: "", C-Plus-Plus: "no", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "no", cpython_arg: "", } - { image: "windows-static-x64-posix", stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern COMP=mingw", ninja: "no", ninja_arg: "", openssl: "no", openssl_arg: "mingw64 no-asm", C: "no", C_arg: "", C-Plus-Plus: "no", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "no", cpython_arg: "", } - { image: "windows-shared-x64", stockfish: "no", stockfish_arg: "", ninja: "no", ninja_arg: "", openssl: "no", openssl_arg: "mingw64 no-asm", C: "no", C_arg: "", C-Plus-Plus: "no", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "no", cpython_arg: "", } - { image: "windows-shared-x64-posix", stockfish: "no", stockfish_arg: "", ninja: "no", ninja_arg: "", openssl: "no", openssl_arg: "mingw64 no-asm", C: "no", C_arg: "", C-Plus-Plus: "no", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "no", cpython_arg: "", } # Windows x86 images - { image: "windows-static-x86", stockfish: "yes", stockfish_arg: "ARCH=x86-32-sse41-popcnt COMP=mingw", ninja: "no", ninja_arg: "", openssl: "no", openssl_arg: "mingw no-asm", C: "no", C_arg: "", C-Plus-Plus: "no", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "no", cpython_arg: "", } - { image: "windows-shared-x86", stockfish: "no", stockfish_arg: "", ninja: "no", ninja_arg: "", openssl: "no", openssl_arg: "mingw no-asm", C: "no", C_arg: "", C-Plus-Plus: "no", C-Plus-Plus_arg: "", fmt: "no", fmt_arg: "", cpython: "no", cpython_arg: "", } # Windows arm images - { image: "windows-armv7", stockfish: "no", stockfish_arg: "ARCH=armv7-neon COMP=clang", ninja: "no", ninja_arg: "", openssl: "no", openssl_arg: "mingw no-asm", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "no", cpython_arg: "", } - { image: "windows-arm64", stockfish: "no", stockfish_arg: "ARCH=armv8 COMP=clang", ninja: "no", ninja_arg: "", openssl: "no", openssl_arg: "mingw64 no-asm", C: "no", C_arg: "", C-Plus-Plus: "yes", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "no", cpython_arg: "", } # manylinux_2_28 images - { image: "manylinux_2_28-x64", stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-x86_64", C: "no", C_arg: "", C-Plus-Plus: "no", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "", } # manylinux2014 images - { image: "manylinux2014-x86", stockfish: "yes", stockfish_arg: "ARCH=x86-32-sse41-popcnt", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-x86", C: "no", C_arg: "", C-Plus-Plus: "no", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "", } - { image: "manylinux2014-x64", stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern", ninja: "yes", ninja_arg: "", openssl: "yes", openssl_arg: "linux-x86_64", C: "no", C_arg: "", C-Plus-Plus: "no", C-Plus-Plus_arg: "", fmt: "yes", fmt_arg: "", cpython: "yes", cpython_arg: "", } # - { # image: "manylinux2014-aarch64", # stockfish: "no", # stockfish_arg: "", # ninja: "no", # ninja_arg: "", # openssl: "yes", # openssl_arg: "linux-aarch64", # C: "no", # C_arg: "", # C-Plus-Plus: "no", # C-Plus-Plus_arg: "", # fmt: "no", # fmt_arg: "", # cpython: "yes", # cpython_arg: "", # } # web-wasm images - { image: "web-wasm", stockfish: "no", stockfish_arg: "", ninja: "no", ninja_arg: "", openssl: "no", openssl_arg: "linux-generic64 no-asm no-threads no-engine no-hw no-weak-ssl-ciphers no-dtls no-shared no-dso", C: "no", C_arg: "", C-Plus-Plus: "no", C-Plus-Plus_arg: "", fmt: "no", fmt_arg: "", cpython: "no", cpython_arg: "", } - { image: "web-wasi", stockfish: "no", stockfish_arg: "", ninja: "no", ninja_arg: "", openssl: "no", openssl_arg: "linux-generic64 no-asm no-threads no-engine no-hw no-weak-ssl-ciphers no-dtls no-shared no-dso", C: "no", C_arg: "", C-Plus-Plus: "no", C-Plus-Plus_arg: "", fmt: "no", fmt_arg: "", cpython: "no", cpython_arg: "", } # Bare metal images - { image: "bare-armv7emhf-nano_newlib", stockfish: "no", stockfish_arg: "", ninja: "no", ninja_arg: "", openssl: "no", openssl_arg: "", C: "no", C_arg: "", C-Plus-Plus: "no", C-Plus-Plus_arg: "", fmt: "no", fmt_arg: "", cpython: "no", cpython_arg: "", mbedtls: "yes", mbedtls_arg: "", libopencm3: "yes", libopencm3_arg: "", } steps: - name: checkout code uses: actions/checkout@v3 with: submodules: "recursive" fetch-depth: 1 - uses: actions/download-artifact@v3 with: name: cache path: ./cache - name: load base run: xz -d -k < ./cache/base.tar.xz | docker load - name: build run: make ${{ matrix.arch_name.image }} - name: basic test run: make ${{ matrix.arch_name.image }}.test # Updated on 19/05/2022 - name: stockfish build test if: ${{ matrix.arch_name.stockfish == 'yes' }} run: | git clone --depth 1 --branch sf_15 https://github.com/official-stockfish/Stockfish.git cd Stockfish/src ./../../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} net ./../../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} build ${{ matrix.arch_name.stockfish_arg }} -j2 cd ../.. rm -rf Stockfish # Updated on 19/05/2022 - name: ninja build test if: ${{ matrix.arch_name.ninja == 'yes' }} run: | git clone --depth 1 --branch v1.11.0 https://github.com/ninja-build/ninja.git cd ninja ./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.ninja_arg }} # Updated on 19/05/2022 - name: openssl build test if: ${{ matrix.arch_name.openssl == 'yes' }} run: | git clone --depth 1 --branch OpenSSL_1_1_1o https://github.com/openssl/openssl.git cd openssl wget https://raw.githubusercontent.com/mavlink/MAVSDK/main/third_party/openssl/dockcross-android.patch patch -p 0 < dockcross-android.patch ./../tools/dockcross-command.sh ${{ matrix.arch_name.image }} ./Configure ${{ matrix.arch_name.openssl_arg }} ./../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} -j2 cd .. rm -rf openssl # Updated on 19/05/2022 - name: C build test if: ${{ matrix.arch_name.C == 'yes' }} run: | git clone https://github.com/TheAlgorithms/C.git cd C git checkout 2314a195862243e09c485a66194866517a6f8c31 ./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.C_arg }} cd .. rm -rf C # Updated on 19/05/2022 - name: C-Plus-Plus build test if: ${{ matrix.arch_name.C-Plus-Plus == 'yes' }} run: | git clone https://github.com/TheAlgorithms/C-Plus-Plus.git cd C-Plus-Plus git checkout 37a29008e6b77921a97a89ca8b7fd9e700aeccd0 ./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.C-Plus-Plus_arg }} cd .. rm -rf C-Plus-Plus # Updated on 19/05/2022 - name: fmt build test if: ${{ matrix.arch_name.fmt == 'yes' }} run: | git clone --depth 1 --branch 8.1.1 https://github.com/fmtlib/fmt.git cd fmt ./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.fmt_arg }} -DFMT_DOC=OFF cd .. rm -rf fmt # Updated on 19/05/2022 - name: cpython build test if: ${{ matrix.arch_name.cpython == 'yes' }} run: | git clone --depth 1 --branch v3.9.13 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 }} --build=x86_64-linux-gnu --enable-shared ./../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} -j2 cd .. rm -rf cpython # Updated on 31/3/2022 - name: mbedtls build test if: ${{ matrix.arch_name.mbedtls == 'yes' }} run: | git clone --depth 1 --branch archive/baremetal https://github.com/Mbed-TLS/mbedtls.git cd mbedtls ./../tools/dockcross-command.sh ${{ matrix.arch_name.image }} scripts/config.pl baremetal ./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.fmt_arg }} cd .. rm -rf mbedtls # Updated on 20/6/2022 - name: libopencm3 build test if: ${{ matrix.arch_name.libopencm3 == 'yes' }} run: | git clone https://github.com/libopencm3/libopencm3.git cd libopencm3 git checkout 467522778329d6f41781a6c951b77d6ff6744de6 ./../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} "PREFIX=/usr/xcc/arm-none-eabi/bin/arm-none-eabi- \ TARGETS='stm32/f1 stm32/f2 stm32/f3 stm32/f4 stm32/f7 \ stm32/l1 stm32/l4 stm32/g4 stm32/h7 gd32/f1x0 lpc13xx \ lpc17xx lpc43xx/m4 lm3s lm4f msp432/e4 efm32/tg efm32/g \ efm32/lg efm32/gg efm32/wg efm32/ezr32wg nrf/51 nrf/52 \ sam/3a sam/3n sam/3s sam/3u sam/3x sam/4l vf6xx pac55xx' \ -j`nproc`" cd .. rm -rf libopencm3 - name: deploy if: github.ref == 'refs/heads/master' run: | docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }} docker image push dockcross/${{ matrix.arch_name.image }} --all-tags