Skip to content

Commit 3c734b8

Browse files
authored
Add new compilation CI for macos-11 and macos-13 (redis#12666)
As discussed in redis#12611 Add a build CI for macox 11 and 13 to avoid compatibility breakage introduced by future macos sdk versions.
1 parent d27c741 commit 3c734b8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/daily.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,35 @@ jobs:
870870
if: true && !contains(github.event.inputs.skiptests, 'cluster')
871871
run: ./runtest-cluster ${{github.event.inputs.cluster_test_args}}
872872

873+
build-macos:
874+
strategy:
875+
matrix:
876+
os: [macos-11, macos-13]
877+
runs-on: ${{ matrix.os }}
878+
if: |
879+
(github.event_name == 'workflow_dispatch' || (github.event_name != 'workflow_dispatch' && github.repository == 'redis/redis')) &&
880+
!contains(github.event.inputs.skipjobs, 'macos')
881+
timeout-minutes: 14400
882+
steps:
883+
- uses: maxim-lobanov/setup-xcode@v1
884+
with:
885+
xcode-version: latest
886+
- name: prep
887+
if: github.event_name == 'workflow_dispatch'
888+
run: |
889+
echo "GITHUB_REPOSITORY=${{github.event.inputs.use_repo}}" >> $GITHUB_ENV
890+
echo "GITHUB_HEAD_REF=${{github.event.inputs.use_git_ref}}" >> $GITHUB_ENV
891+
echo "skipjobs: ${{github.event.inputs.skipjobs}}"
892+
echo "skiptests: ${{github.event.inputs.skiptests}}"
893+
echo "test_args: ${{github.event.inputs.test_args}}"
894+
echo "cluster_test_args: ${{github.event.inputs.cluster_test_args}}"
895+
- uses: actions/checkout@v3
896+
with:
897+
repository: ${{ env.GITHUB_REPOSITORY }}
898+
ref: ${{ env.GITHUB_HEAD_REF }}
899+
- name: make
900+
run: make REDIS_CFLAGS='-Werror -DREDIS_TEST'
901+
873902
test-freebsd:
874903
runs-on: macos-12
875904
if: |

0 commit comments

Comments
 (0)