forked from irungentoo/toxcore
-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add an s390x build (on alpine) for CI.
It doesn't work at all, because we're missing something in the net code to do with endian conversions. I haven't investigated, yet, but at least now we have a failing test that can be investigated. Also moved to cmake 3.5 at minimum. CMake will stop supporting lower versions than that, soon. Also moved to C17 from C99 to get `static_assert`.
- Loading branch information
Showing
19 changed files
with
116 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
# Copyright (C) 2018-2021 nurupo | ||
|
||
# Toxcore building | ||
|
||
set -eux | ||
|
||
cd /work | ||
|
||
. cmake-alpine-run.sh | ||
|
||
# === Get VM ready to build the code === | ||
|
||
start_vm | ||
|
||
RUN apk add cmake g++ ninja | ||
|
||
mv c-toxcore / | ||
|
||
# Copy over toxcore code from host to qemu | ||
scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -P "$SSH_PORT" -r /c-toxcore root@localhost:~ | ||
|
||
cd /c-toxcore | ||
. ".github/scripts/flags-gcc.sh" | ||
|
||
# Make compilation error on a warning | ||
add_flag -Werror | ||
|
||
RUN "cmake -B_build -Hc-toxcore -GNinja \ | ||
-DCMAKE_C_FLAGS='$C_FLAGS' \ | ||
-DCMAKE_CXX_FLAGS='$CXX_FLAGS' \ | ||
-DCMAKE_EXE_LINKER_FLAGS='$LD_FLAGS' \ | ||
-DCMAKE_SHARED_LINKER_FLAGS='$LD_FLAGS' \ | ||
-DCMAKE_INSTALL_PREFIX:PATH='_install' \ | ||
-DCMAKE_UNITY_BUILD=ON \ | ||
-DMIN_LOGGER_LEVEL=TRACE \ | ||
-DNON_HERMETIC_TESTS=ON \ | ||
-DBUILD_TOXAV=OFF \ | ||
-DBOOTSTRAP_DAEMON=OFF \ | ||
-DSTRICT_ABI=ON \ | ||
-DTEST_TIMEOUT_SECONDS=90 \ | ||
-DUSE_IPV6=OFF \ | ||
-DAUTOTEST=ON" | ||
|
||
RUN 'cmake --build _build --parallel 2 --target install -- -k 0' | ||
RUN 'cd _build && ctest -j50 --output-on-failure --rerun-failed --repeat until-pass:1 || true' |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM toxchat/alpine-s390x:latest | ||
|
||
WORKDIR /work/c-toxcore | ||
COPY . /work/c-toxcore/ | ||
|
||
RUN .github/scripts/cmake-alpine-s390x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
set -eux | ||
BUILD=alpine-s390x | ||
docker build -t "toxchat/c-toxcore:$BUILD" -f "other/docker/$BUILD/Dockerfile" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/sh | ||
|
||
docker build -t toxchat/c-toxcore:autotools -f other/docker/autotools/Dockerfile . | ||
set -eux | ||
BUILD=autotools | ||
docker build -t "toxchat/c-toxcore:$BUILD" -f "other/docker/$BUILD/Dockerfile" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
|
||
set -eux | ||
|
||
docker build -t toxchat/c-toxcore:compcert -f other/docker/compcert/Dockerfile . | ||
BUILD=compcert | ||
docker build -t "toxchat/c-toxcore:$BUILD" -f "other/docker/$BUILD/Dockerfile" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM toxchat/freebsd:latest | ||
|
||
WORKDIR /work/c-toxcore | ||
COPY . /work/c-toxcore/ | ||
|
||
RUN .github/scripts/cmake-freebsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
set -eux | ||
BUILD=freebsd | ||
docker build -t "toxchat/c-toxcore:$BUILD" -f "other/docker/$BUILD/Dockerfile" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/sh | ||
|
||
docker build -f other/docker/misra/Dockerfile . | ||
set -eux | ||
BUILD=misra | ||
docker build -t "toxchat/c-toxcore:$BUILD" -f "other/docker/$BUILD/Dockerfile" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
|
||
set -eux | ||
|
||
docker build -t toxchat/c-toxcore:tcc -f other/docker/tcc/Dockerfile . | ||
BUILD=tcc | ||
docker build -t "toxchat/c-toxcore:$BUILD" -f "other/docker/$BUILD/Dockerfile" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/sh | ||
|
||
docker build -f other/docker/tokstyle/Dockerfile . | ||
set -eux | ||
BUILD=tokstyle | ||
docker build -t "toxchat/c-toxcore:$BUILD" -f "other/docker/$BUILD/Dockerfile" . |