Skip to content

Commit

Permalink
Merge pull request #4167 from randombit/jack/add-mips64-cross
Browse files Browse the repository at this point in the history
Add mips64 cross build to CI
  • Loading branch information
randombit committed Jul 1, 2024
2 parents 1f08a64 + e11fd06 commit bd2b5db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ jobs:
- target: cross-riscv64
compiler: gcc
host_os: ubuntu-24.04
- target: cross-mips64
compiler: gcc
host_os: ubuntu-24.04
- target: cross-s390x
compiler: gcc
host_os: ubuntu-24.04
Expand Down
3 changes: 3 additions & 0 deletions src/scripts/ci/setup_gh_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ if type -p "apt-get"; then
elif [ "$TARGET" = "cross-riscv64" ]; then
sudo apt-get -qq install qemu-user g++-riscv64-linux-gnu

elif [ "$TARGET" = "cross-mips64" ]; then
sudo apt-get -qq install qemu-user g++-mips64-linux-gnuabi64

elif [ "$TARGET" = "cross-s390x" ]; then
sudo apt-get -qq install qemu-user g++-s390x-linux-gnu

Expand Down
1 change: 0 additions & 1 deletion src/scripts/ci_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ def sanitize_kv(some_string):
flags += ['--cpu=mips64', '--with-endian=big']
cc_bin = 'mips64-linux-gnuabi64-g++'
test_prefix = ['qemu-mips64', '-L', '/usr/mips64-linux-gnuabi64/']
test_cmd.remove('simd_32') # no SIMD on MIPS
elif target in ['cross-arm32-baremetal']:
flags += ['--cpu=arm32', '--disable-neon', '--without-stack-protector', '--ldflags=-specs=nosys.specs']
cc_bin = 'arm-none-eabi-c++'
Expand Down
5 changes: 2 additions & 3 deletions src/tests/test_filters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -733,9 +733,8 @@ class Filter_Tests final : public Test {

result.test_eq("Message count after end_msg", pipe.message_count(), 2 + filter_count);
for(size_t i = 0; i != filter_count; ++i) {
result.test_eq("Output " + std::to_string(i),
pipe.read_all(2 + i),
"327AD8055223F5926693D8BEA40F7B35BDEEB535647DFB93F464E40EA01939A9");
result.test_eq(
"Output", pipe.read_all(2 + i), "327AD8055223F5926693D8BEA40F7B35BDEEB535647DFB93F464E40EA01939A9");
}
#endif
return result;
Expand Down

0 comments on commit bd2b5db

Please sign in to comment.