Fix daily failures due to macos-latest change. (#9637)

* Fix test modules linking on macOS 11.x.
* Use macOS 10.x for FreeBSD VM as VirtualBox is not yet supported on
  11.
This commit is contained in:
Yossi Gottlieb 2021-10-17 00:07:27 +03:00 committed by GitHub
parent 3c9e5271c6
commit 6d5a911707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -399,7 +399,7 @@ jobs:
run: ./runtest-cluster ${{github.event.inputs.cluster_test_args}}
test-freebsd:
runs-on: macos-latest
runs-on: macos-10.15
if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'freebsd')
timeout-minutes: 14400
steps:

View File

@ -11,8 +11,9 @@ else # Linux, others
endif
# Needed to satisfy __stack_chk_fail_local on Linux with -m32, due to gcc
# -fstack-protector by default. Breaks on FreeBSD so we exclude it.
ifneq ($(uname_S),FreeBSD)
# -fstack-protector by default. Breaks on FreeBSD and macOS 11 so needs
# to be Linux specific.
ifeq ($(uname_S),Linux)
LIBS = -lc
endif