mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-01-25 23:54:37 +01:00
Reformat CI
Reformat CI Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
1b8a64afee
commit
b3616c037c
413
.github/workflows/main.yml
vendored
413
.github/workflows/main.yml
vendored
@ -3,14 +3,14 @@ name: Dockcross CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- "*"
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- "**.md"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- "*"
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- "**.md"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -25,8 +25,8 @@ jobs:
|
|||||||
run: make base.test
|
run: make base.test
|
||||||
- name: archive base
|
- name: archive base
|
||||||
run: |
|
run: |
|
||||||
mkdir -p cache
|
mkdir -p cache
|
||||||
docker save dockcross/base:latest | xz -e9 -T0 > ./cache/base.tar.xz
|
docker save dockcross/base:latest | xz -e9 -T0 > ./cache/base.tar.xz
|
||||||
- name: save base
|
- name: save base
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
@ -36,8 +36,8 @@ jobs:
|
|||||||
- name: deploy
|
- name: deploy
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
|
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
|
||||||
docker image push dockcross/base --all-tags
|
docker image push dockcross/base --all-tags
|
||||||
|
|
||||||
image:
|
image:
|
||||||
name: ${{ matrix.arch_name.image }}
|
name: ${{ matrix.arch_name.image }}
|
||||||
@ -47,102 +47,291 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
arch_name:
|
arch_name:
|
||||||
# Android images
|
# Android images
|
||||||
- { image: "android-arm",
|
- {
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=armv7 COMP=ndk" }
|
image: "android-arm",
|
||||||
- { image: "android-arm64",
|
stockfish: "yes",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=armv8 COMP=ndk" }
|
stockfish_arg: "ARCH=armv7 COMP=ndk",
|
||||||
- { image: "android-x86",
|
openssl: "yes",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=x86-32 COMP=ndk" }
|
openssl_arg: "",
|
||||||
- { image: "android-x86_64",
|
}
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=x86-64 COMP=ndk" }
|
- {
|
||||||
# Linux arm64/armv8 images
|
image: "android-arm64",
|
||||||
- { image: "linux-arm64",
|
stockfish: "yes",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=armv8" }
|
stockfish_arg: "ARCH=armv8 COMP=ndk",
|
||||||
- { image: "linux-arm64-musl",
|
openssl: "yes",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=armv8" }
|
openssl_arg: "",
|
||||||
- { image: "linux-arm64-full",
|
}
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=armv8" }
|
- {
|
||||||
# Linux armv5 images
|
image: "android-x86",
|
||||||
- { image: "linux-armv5",
|
stockfish: "yes",
|
||||||
stockfish: "no", stockfish_arg: "" }
|
stockfish_arg: "ARCH=x86-32 COMP=ndk",
|
||||||
- { image: "linux-armv5-musl",
|
openssl: "yes",
|
||||||
stockfish: "no", stockfish_arg: "" }
|
openssl_arg: "",
|
||||||
# Linux armv6 images
|
}
|
||||||
- { image: "linux-armv6",
|
- {
|
||||||
stockfish: "no", stockfish_arg: "" }
|
image: "android-x86_64",
|
||||||
- { image: "linux-armv6-lts",
|
stockfish: "yes",
|
||||||
stockfish: "no", stockfish_arg: "" }
|
stockfish_arg: "ARCH=x86-64 COMP=ndk",
|
||||||
- { image: "linux-armv6-musl",
|
openssl: "yes",
|
||||||
stockfish: "no", stockfish_arg: "" }
|
openssl_arg: "",
|
||||||
# Linux armv7 images
|
}
|
||||||
- { image: "linux-armv7",
|
# Linux arm64/armv8 images
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=armv7" }
|
- {
|
||||||
- { image: "linux-armv7a",
|
image: "linux-arm64",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=armv7-neon" }
|
stockfish: "yes",
|
||||||
- { image: "linux-armv7l-musl",
|
stockfish_arg: "ARCH=armv8",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=armv7" }
|
openssl: "yes",
|
||||||
# Linux x86 images
|
openssl_arg: "",
|
||||||
- { image: "linux-x86",
|
}
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=x86-32-sse41-popcnt" }
|
- {
|
||||||
# Linux x86_64 images
|
image: "linux-arm64-musl",
|
||||||
- { image: "linux-x64",
|
stockfish: "yes",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern" }
|
stockfish_arg: "ARCH=armv8",
|
||||||
- { image: "linux-x64-tinycc",
|
openssl: "yes",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern" }
|
openssl_arg: "",
|
||||||
- { image: "linux-x64-clang",
|
}
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern COMP=clang" }
|
- {
|
||||||
- { image: "linux-x86_64-full",
|
image: "linux-arm64-full",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern" }
|
stockfish: "yes",
|
||||||
# Linux riscv images
|
stockfish_arg: "ARCH=armv8",
|
||||||
- { image: "linux-riscv32",
|
openssl: "yes",
|
||||||
stockfish: "no", stockfish_arg: "" }
|
openssl_arg: "",
|
||||||
- { image: "linux-riscv64",
|
}
|
||||||
stockfish: "no", stockfish_arg: "" }
|
# Linux armv5 images
|
||||||
# Linux s390x images
|
- {
|
||||||
- { image: "linux-s390x",
|
image: "linux-armv5",
|
||||||
stockfish: "no", stockfish_arg: "" }
|
stockfish: "no",
|
||||||
# Linux mips images
|
stockfish_arg: "",
|
||||||
- { image: "linux-mips",
|
openssl: "yes",
|
||||||
stockfish: "no", stockfish_arg: "" }
|
openssl_arg: "",
|
||||||
# Linux ppc64le images
|
}
|
||||||
- { image: "linux-ppc64le",
|
- {
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=ppc-64" }
|
image: "linux-armv5-musl",
|
||||||
# Linux m68k images
|
stockfish: "no",
|
||||||
- { image: "linux-m68k-uclibc",
|
stockfish_arg: "",
|
||||||
stockfish: "no", stockfish_arg: "" }
|
openssl: "yes",
|
||||||
# Linux xtensa images
|
openssl_arg: "",
|
||||||
- { image: "linux-xtensa-uclibc",
|
}
|
||||||
stockfish: "no", stockfish_arg: "" }
|
# Linux armv6 images
|
||||||
# Windows x86_x64 images
|
- {
|
||||||
- { image: "windows-static-x64",
|
image: "linux-armv6",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern COMP=mingw" }
|
stockfish: "no",
|
||||||
- { image: "windows-static-x64-posix",
|
stockfish_arg: "",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern COMP=mingw" }
|
openssl: "yes",
|
||||||
- { image: "windows-shared-x64",
|
openssl_arg: "",
|
||||||
stockfish: "no", stockfish_arg: "" }
|
}
|
||||||
- { image: "windows-shared-x64-posix",
|
- {
|
||||||
stockfish: "no", stockfish_arg: "" }
|
image: "linux-armv6-lts",
|
||||||
# Windows x86 images
|
stockfish: "no",
|
||||||
- { image: "windows-static-x86",
|
stockfish_arg: "",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=x86-32-sse41-popcnt COMP=mingw" }
|
openssl: "yes",
|
||||||
- { image: "windows-shared-x86",
|
openssl_arg: "",
|
||||||
stockfish: "no", stockfish_arg: "" }
|
}
|
||||||
# Windows arm images
|
- {
|
||||||
- { image: "windows-armv7",
|
image: "linux-armv6-musl",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=armv7-neon COMP=clang" }
|
stockfish: "no",
|
||||||
- { image: "windows-arm64",
|
stockfish_arg: "",
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=armv8 COMP=clang" }
|
openssl: "yes",
|
||||||
# manylinux2014 images
|
openssl_arg: "",
|
||||||
- { image: "manylinux2014-x86",
|
}
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=x86-32-sse41-popcnt" }
|
# Linux armv7 images
|
||||||
- { image: "manylinux2014-x64",
|
- {
|
||||||
stockfish: "yes", stockfish_arg: "ARCH=x86-64-modern" }
|
image: "linux-armv7",
|
||||||
- { image: "manylinux2014-aarch64",
|
stockfish: "yes",
|
||||||
stockfish: "no", stockfish_arg: "" }
|
stockfish_arg: "ARCH=armv7",
|
||||||
# web-wasm images
|
openssl: "yes",
|
||||||
- { image: "web-wasm",
|
openssl_arg: "",
|
||||||
stockfish: "no", stockfish_arg: "" }
|
}
|
||||||
|
- {
|
||||||
|
image: "linux-armv7a",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=armv7-neon",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
image: "linux-armv7l-musl",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=armv7",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
# Linux x86 images
|
||||||
|
- {
|
||||||
|
image: "linux-x86",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=x86-32-sse41-popcnt",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
# Linux x86_64 images
|
||||||
|
- {
|
||||||
|
image: "linux-x64",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=x86-64-modern",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
image: "linux-x64-tinycc",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=x86-64-modern",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
image: "linux-x64-clang",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=x86-64-modern COMP=clang",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
image: "linux-x86_64-full",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=x86-64-modern",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
# Linux riscv images
|
||||||
|
- {
|
||||||
|
image: "linux-riscv32",
|
||||||
|
stockfish: "no",
|
||||||
|
stockfish_arg: "",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
image: "linux-riscv64",
|
||||||
|
stockfish: "no",
|
||||||
|
stockfish_arg: "",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
# Linux s390x images
|
||||||
|
- {
|
||||||
|
image: "linux-s390x",
|
||||||
|
stockfish: "no",
|
||||||
|
stockfish_arg: "",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
# Linux mips images
|
||||||
|
- {
|
||||||
|
image: "linux-mips",
|
||||||
|
stockfish: "no",
|
||||||
|
stockfish_arg: "",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
# Linux ppc64le images
|
||||||
|
- {
|
||||||
|
image: "linux-ppc64le",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=ppc-64",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
# Linux m68k images
|
||||||
|
- {
|
||||||
|
image: "linux-m68k-uclibc",
|
||||||
|
stockfish: "no",
|
||||||
|
stockfish_arg: "",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
# Linux xtensa images
|
||||||
|
- {
|
||||||
|
image: "linux-xtensa-uclibc",
|
||||||
|
stockfish: "no",
|
||||||
|
stockfish_arg: "",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
# Windows x86_x64 images
|
||||||
|
- {
|
||||||
|
image: "windows-static-x64",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=x86-64-modern COMP=mingw",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
image: "windows-static-x64-posix",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=x86-64-modern COMP=mingw",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
image: "windows-shared-x64",
|
||||||
|
stockfish: "no",
|
||||||
|
stockfish_arg: "",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
image: "windows-shared-x64-posix",
|
||||||
|
stockfish: "no",
|
||||||
|
stockfish_arg: "",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
# Windows x86 images
|
||||||
|
- {
|
||||||
|
image: "windows-static-x86",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=x86-32-sse41-popcnt COMP=mingw",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
- { image: "windows-shared-x86", stockfish: "no", stockfish_arg: "" }
|
||||||
|
# Windows arm images
|
||||||
|
- {
|
||||||
|
image: "windows-armv7",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=armv7-neon COMP=clang",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
image: "windows-arm64",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=armv8 COMP=clang",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
# manylinux2014 images
|
||||||
|
- {
|
||||||
|
image: "manylinux2014-x86",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=x86-32-sse41-popcnt",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
image: "manylinux2014-x64",
|
||||||
|
stockfish: "yes",
|
||||||
|
stockfish_arg: "ARCH=x86-64-modern",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
image: "manylinux2014-aarch64",
|
||||||
|
stockfish: "no",
|
||||||
|
stockfish_arg: "",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
|
# web-wasm images
|
||||||
|
- {
|
||||||
|
image: "web-wasm",
|
||||||
|
stockfish: "no",
|
||||||
|
stockfish_arg: "",
|
||||||
|
openssl: "yes",
|
||||||
|
openssl_arg: "",
|
||||||
|
}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
@ -158,14 +347,14 @@ jobs:
|
|||||||
- name: stockfish build test
|
- name: stockfish build test
|
||||||
if: ${{ matrix.arch_name.stockfish == 'yes' }}
|
if: ${{ matrix.arch_name.stockfish == 'yes' }}
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/official-stockfish/Stockfish.git
|
git clone https://github.com/official-stockfish/Stockfish.git
|
||||||
cd Stockfish
|
cd Stockfish
|
||||||
git checkout sf_14
|
git checkout sf_14
|
||||||
cd src
|
cd src
|
||||||
./../../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} net
|
./../../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
|
./../../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} build ${{ matrix.arch_name.stockfish_arg }} -j2
|
||||||
- name: deploy
|
- name: deploy
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
|
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
|
||||||
docker image push dockcross/${{ matrix.arch_name.image }} --all-tags
|
docker image push dockcross/${{ matrix.arch_name.image }} --all-tags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user