2021-01-29 19:56:13 +01:00
|
|
|
name: Dockcross CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-08-26 20:47:28 +02:00
|
|
|
- "*"
|
2021-06-29 17:47:51 +02:00
|
|
|
paths-ignore:
|
2021-08-26 20:47:28 +02:00
|
|
|
- "**.md"
|
2021-01-29 19:56:13 +01:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2021-08-26 20:47:28 +02:00
|
|
|
- "*"
|
2021-06-29 17:47:51 +02:00
|
|
|
paths-ignore:
|
2021-08-26 20:47:28 +02:00
|
|
|
- "**.md"
|
2021-07-01 00:15:25 +02:00
|
|
|
workflow_dispatch:
|
2021-01-29 19:56:13 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
base:
|
|
|
|
name: base
|
2021-07-02 08:45:02 +02:00
|
|
|
runs-on: ubuntu-latest
|
2021-01-29 19:56:13 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: build
|
|
|
|
run: make base
|
|
|
|
- name: test
|
|
|
|
run: make base.test
|
|
|
|
- name: archive base
|
|
|
|
run: |
|
2021-08-26 20:47:28 +02:00
|
|
|
mkdir -p cache
|
|
|
|
docker save dockcross/base:latest | xz -e9 -T0 > ./cache/base.tar.xz
|
2021-01-29 19:56:13 +01:00
|
|
|
- name: save base
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: cache
|
|
|
|
path: ./cache
|
|
|
|
retention-days: 1
|
2021-02-10 18:38:51 +01:00
|
|
|
- name: deploy
|
|
|
|
if: github.ref == 'refs/heads/master'
|
|
|
|
run: |
|
2021-08-26 20:47:28 +02:00
|
|
|
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
|
|
|
|
docker image push dockcross/base --all-tags
|
2021-01-29 19:56:13 +01:00
|
|
|
|
|
|
|
image:
|
2021-08-24 23:54:17 +02:00
|
|
|
name: ${{ matrix.arch_name.image }}
|
2021-01-29 19:56:13 +01:00
|
|
|
needs: base
|
2021-07-23 23:52:07 +02:00
|
|
|
runs-on: ubuntu-latest
|
2021-01-29 19:56:13 +01:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-08-24 23:54:17 +02:00
|
|
|
arch_name:
|
2021-08-26 20:47:28 +02:00
|
|
|
# Android images
|
|
|
|
- {
|
|
|
|
image: "android-arm",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=armv7 COMP=ndk",
|
|
|
|
ninja: "no",
|
|
|
|
ninja_arg: "",
|
2021-08-27 20:44:52 +02:00
|
|
|
openssl: "yes",
|
2021-08-27 13:19:31 +02:00
|
|
|
openssl_arg: "android-arm no-shared",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "android-arm64",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=armv8 COMP=ndk",
|
|
|
|
ninja: "no",
|
|
|
|
ninja_arg: "",
|
2021-08-27 20:44:52 +02:00
|
|
|
openssl: "yes",
|
2021-08-27 13:19:31 +02:00
|
|
|
openssl_arg: "android-arm64 no-shared",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "android-x86",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=x86-32 COMP=ndk",
|
|
|
|
ninja: "no",
|
|
|
|
ninja_arg: "",
|
2021-08-27 20:44:52 +02:00
|
|
|
openssl: "yes",
|
2021-08-27 13:19:31 +02:00
|
|
|
openssl_arg: "android-x86 no-shared",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "android-x86_64",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=x86-64 COMP=ndk",
|
|
|
|
ninja: "no",
|
|
|
|
ninja_arg: "",
|
2021-08-27 20:44:52 +02:00
|
|
|
openssl: "yes",
|
2021-08-27 13:19:31 +02:00
|
|
|
openssl_arg: "android-x86_64 no-shared",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# Linux arm64/armv8 images
|
|
|
|
- {
|
|
|
|
image: "linux-arm64",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=armv8",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-aarch64",
|
2021-08-29 13:37:13 +02:00
|
|
|
C: "yes",
|
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "linux-arm64-musl",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=armv8",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-aarch64",
|
2021-08-29 13:37:13 +02:00
|
|
|
C: "yes",
|
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "linux-arm64-full",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=armv8",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-aarch64",
|
2021-08-29 13:37:13 +02:00
|
|
|
C: "yes",
|
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# Linux armv5 images
|
|
|
|
- {
|
|
|
|
image: "linux-armv5",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-armv4",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "linux-armv5-musl",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-armv4",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# Linux armv6 images
|
|
|
|
- {
|
|
|
|
image: "linux-armv6",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-armv4",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "linux-armv6-lts",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-armv4",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "linux-armv6-musl",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-armv4",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# Linux armv7 images
|
|
|
|
- {
|
|
|
|
image: "linux-armv7",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=armv7",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-armv4",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "linux-armv7a",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=armv7-neon",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-armv4",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "linux-armv7l-musl",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=armv7",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-armv4",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# 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",
|
2021-08-29 13:37:13 +02:00
|
|
|
C: "yes",
|
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# 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",
|
2021-08-28 08:40:13 +02:00
|
|
|
C: "yes",
|
|
|
|
C_arg: "",
|
2021-08-27 19:06:37 +02:00
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
2021-08-29 13:37:13 +02:00
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "linux-x64-tinycc",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=x86-64-modern",
|
|
|
|
ninja: "yes",
|
|
|
|
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",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "linux-x64-clang",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=x86-64-modern COMP=clang",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "no",
|
|
|
|
openssl_arg: "linux-x86_64-clang",
|
2021-08-29 13:37:13 +02:00
|
|
|
C: "yes",
|
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "linux-x86_64-full",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=x86-64-modern",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
2021-08-29 13:37:13 +02:00
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-x86_64",
|
2021-08-28 08:40:13 +02:00
|
|
|
C: "yes",
|
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
2021-08-29 13:37:13 +02:00
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# Linux riscv images
|
|
|
|
- {
|
|
|
|
image: "linux-riscv32",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-generic32",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "linux-riscv64",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-generic64",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# Linux s390x images
|
|
|
|
- {
|
|
|
|
image: "linux-s390x",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux64-s390x",
|
2021-08-29 13:37:13 +02:00
|
|
|
C: "yes",
|
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# Linux mips images
|
|
|
|
- {
|
|
|
|
image: "linux-mips",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-generic32",
|
2021-08-29 13:37:13 +02:00
|
|
|
C: "yes",
|
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# Linux ppc64le images
|
|
|
|
- {
|
|
|
|
image: "linux-ppc64le",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=ppc-64",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-ppc64le",
|
2021-08-29 13:37:13 +02:00
|
|
|
C: "yes",
|
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# 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",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# 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",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# 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",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
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",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "windows-shared-x64",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "",
|
|
|
|
ninja: "no",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "no",
|
|
|
|
openssl_arg: "mingw64 no-asm",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "windows-shared-x64-posix",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "",
|
|
|
|
ninja: "no",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "no",
|
|
|
|
openssl_arg: "mingw64 no-asm",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# 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",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "windows-shared-x86",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "",
|
|
|
|
ninja: "no",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "no",
|
|
|
|
openssl_arg: "mingw no-asm",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# 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",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "windows-arm64",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "ARCH=armv8 COMP=clang",
|
2021-08-26 20:51:42 +02:00
|
|
|
ninja: "no",
|
2021-08-26 20:47:28 +02:00
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "no",
|
|
|
|
openssl_arg: "mingw64 no-asm",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# manylinux2014 images
|
|
|
|
- {
|
|
|
|
image: "manylinux2014-x86",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=x86-32-sse41-popcnt",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-x86",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "manylinux2014-x64",
|
|
|
|
stockfish: "yes",
|
|
|
|
stockfish_arg: "ARCH=x86-64-modern",
|
|
|
|
ninja: "yes",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-x86_64",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
- {
|
|
|
|
image: "manylinux2014-aarch64",
|
|
|
|
stockfish: "no",
|
|
|
|
stockfish_arg: "",
|
|
|
|
ninja: "no",
|
|
|
|
ninja_arg: "",
|
|
|
|
openssl: "yes",
|
|
|
|
openssl_arg: "linux-aarch64",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
|
|
|
# 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",
|
2021-08-29 16:48:37 +02:00
|
|
|
C: "no",
|
2021-08-29 13:37:13 +02:00
|
|
|
C_arg: "",
|
|
|
|
C-Plus-Plus: "yes",
|
|
|
|
C-Plus-Plus_arg: "",
|
|
|
|
fmt: "yes",
|
|
|
|
fmt_arg: ""
|
2021-08-26 20:47:28 +02:00
|
|
|
}
|
2021-01-29 19:56:13 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: cache
|
|
|
|
path: ./cache
|
|
|
|
- name: load base
|
2021-07-01 18:25:04 +02:00
|
|
|
run: xz -d -k < ./cache/base.tar.xz | docker load
|
2021-01-29 19:56:13 +01:00
|
|
|
- name: build
|
2021-08-24 23:54:17 +02:00
|
|
|
run: make ${{ matrix.arch_name.image }}
|
|
|
|
- name: basic test
|
|
|
|
run: make ${{ matrix.arch_name.image }}.test
|
2021-08-26 20:47:28 +02:00
|
|
|
- name: stockfish build test
|
|
|
|
if: ${{ matrix.arch_name.stockfish == 'yes' }}
|
|
|
|
run: |
|
|
|
|
git clone --depth 1 --branch sf_14 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
|
|
|
|
- name: ninja build test
|
|
|
|
if: ${{ matrix.arch_name.ninja == 'yes' }}
|
|
|
|
run: |
|
|
|
|
git clone --depth 1 --branch v1.10.2 https://github.com/ninja-build/ninja.git
|
|
|
|
cd ninja
|
|
|
|
./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.ninja_arg }}
|
|
|
|
- name: openssl build test
|
|
|
|
if: ${{ matrix.arch_name.openssl == 'yes' }}
|
|
|
|
run: |
|
|
|
|
git clone --depth 1 --branch OpenSSL_1_1_1k https://github.com/openssl/openssl.git
|
|
|
|
cd openssl
|
2021-08-27 23:01:43 +02:00
|
|
|
wget https://raw.githubusercontent.com/mavlink/MAVSDK/main/third_party/openssl/dockcross-android.patch
|
|
|
|
patch -p 0 < dockcross-android.patch
|
2021-08-26 20:47:28 +02:00
|
|
|
./../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
|
2021-08-28 08:40:13 +02:00
|
|
|
- name: C build test
|
|
|
|
if: ${{ matrix.arch_name.C == 'yes' }}
|
|
|
|
run: |
|
|
|
|
git clone https://github.com/TheAlgorithms/C.git
|
|
|
|
cd C
|
|
|
|
git checkout cc241f58c253c533ac94e07151ef91a5ef7e5719
|
|
|
|
./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.C_arg }}
|
|
|
|
cd ..
|
|
|
|
rm -rf C
|
2021-08-27 19:06:37 +02:00
|
|
|
- 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 c3b07aed2240e5364e1a49d091a00b61f520e653
|
|
|
|
./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.C-Plus-Plus_arg }}
|
|
|
|
cd ..
|
|
|
|
rm -rf C-Plus-Plus
|
2021-08-27 20:44:52 +02:00
|
|
|
- name: fmt build test
|
2021-08-27 19:06:37 +02:00
|
|
|
if: ${{ matrix.arch_name.fmt == 'yes' }}
|
|
|
|
run: |
|
|
|
|
git clone --depth 1 --branch 8.0.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
|
2021-01-29 19:56:13 +01:00
|
|
|
- name: deploy
|
2021-02-10 16:24:34 +01:00
|
|
|
if: github.ref == 'refs/heads/master'
|
2021-01-29 19:56:13 +01:00
|
|
|
run: |
|
2021-08-26 20:47:28 +02:00
|
|
|
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
|
|
|
|
docker image push dockcross/${{ matrix.arch_name.image }} --all-tags
|