1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-12 03:59:15 +00:00

Check compiler for docker builds in CI

closes https://github.com/official-stockfish/Stockfish/pull/4739

No functional change
This commit is contained in:
ppigazzini 2023-08-11 16:57:26 +02:00 committed by Disservin
parent 84e97a38a3
commit 796d9df643

View file

@ -134,7 +134,7 @@ jobs:
FROM ${{ matrix.config.base_image }} FROM ${{ matrix.config.base_image }}
WORKDIR /app WORKDIR /app
RUN apk update && apk add make g++ RUN apk update && apk add make g++
CMD sh make_sf.sh CMD ["sh", "script.sh"]
EOF EOF
- name: Download required macOS packages - name: Download required macOS packages
@ -160,10 +160,15 @@ jobs:
- name: Check compiler - name: Check compiler
run: | run: |
if [ -z "${{ matrix.config.base_image }}" ]; then
if [ $COMP == ndk ]; then if [ $COMP == ndk ]; then
export PATH=${{ env.ANDROID_NDK_BIN }}:$PATH export PATH=${{ env.ANDROID_NDK_BIN }}:$PATH
fi fi
$COMPILER -v $COMPILER -v
else
echo "$COMPILER -v" > script.sh
docker run --rm --platform ${{ matrix.config.platform }} -v ${{ github.workspace }}/src:/app sf_builder
fi
- name: Test help target - name: Test help target
run: make help run: make help
@ -321,7 +326,7 @@ jobs:
- name: Test riscv64 build - name: Test riscv64 build
if: matrix.config.run_riscv64_tests if: matrix.config.run_riscv64_tests
run: | run: |
echo "export LDFLAGS='-static' && make clean && make -j2 ARCH=riscv64 build" > make_sf.sh echo "export LDFLAGS='-static' && make clean && make -j2 ARCH=riscv64 build" > script.sh
docker run --rm --platform ${{ matrix.config.platform }} -v ${{ github.workspace }}/src:/app sf_builder docker run --rm --platform ${{ matrix.config.platform }} -v ${{ github.workspace }}/src:/app sf_builder
../tests/signature.sh $benchref ../tests/signature.sh $benchref
@ -330,7 +335,7 @@ jobs:
- name: Test ppc64 build - name: Test ppc64 build
if: matrix.config.run_ppc64_tests if: matrix.config.run_ppc64_tests
run: | run: |
echo "export LDFLAGS='-static' && make clean && make -j2 ARCH=ppc-64 build" > make_sf.sh echo "export LDFLAGS='-static' && make clean && make -j2 ARCH=ppc-64 build" > script.sh
docker run --rm --platform ${{ matrix.config.platform }} -v ${{ github.workspace }}/src:/app sf_builder docker run --rm --platform ${{ matrix.config.platform }} -v ${{ github.workspace }}/src:/app sf_builder
../tests/signature.sh $benchref ../tests/signature.sh $benchref