From 3c734b8e9dc357f8ec743e8db25ca916cfdcf7bc Mon Sep 17 00:00:00 2001 From: sundb Date: Wed, 18 Oct 2023 05:25:52 -0500 Subject: [PATCH] Add new compilation CI for macos-11 and macos-13 (#12666) As discussed in #12611 Add a build CI for macox 11 and 13 to avoid compatibility breakage introduced by future macos sdk versions. --- .github/workflows/daily.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 72720e6dd..3a5545f84 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -870,6 +870,35 @@ jobs: if: true && !contains(github.event.inputs.skiptests, 'cluster') run: ./runtest-cluster ${{github.event.inputs.cluster_test_args}} + build-macos: + strategy: + matrix: + os: [macos-11, macos-13] + runs-on: ${{ matrix.os }} + if: | + (github.event_name == 'workflow_dispatch' || (github.event_name != 'workflow_dispatch' && github.repository == 'redis/redis')) && + !contains(github.event.inputs.skipjobs, 'macos') + timeout-minutes: 14400 + steps: + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest + - name: prep + if: github.event_name == 'workflow_dispatch' + run: | + echo "GITHUB_REPOSITORY=${{github.event.inputs.use_repo}}" >> $GITHUB_ENV + echo "GITHUB_HEAD_REF=${{github.event.inputs.use_git_ref}}" >> $GITHUB_ENV + echo "skipjobs: ${{github.event.inputs.skipjobs}}" + echo "skiptests: ${{github.event.inputs.skiptests}}" + echo "test_args: ${{github.event.inputs.test_args}}" + echo "cluster_test_args: ${{github.event.inputs.cluster_test_args}}" + - uses: actions/checkout@v3 + with: + repository: ${{ env.GITHUB_REPOSITORY }} + ref: ${{ env.GITHUB_HEAD_REF }} + - name: make + run: make REDIS_CFLAGS='-Werror -DREDIS_TEST' + test-freebsd: runs-on: macos-12 if: |