Skip to content

Commit

Permalink
ci(mac): select xcode 14.0.1 for release jobs (4paradigm#3796)
Browse files Browse the repository at this point in the history
xcode 14.0.1 on macos-12, targeting on macOS 12.3 SDK, requires minos
12.0
  • Loading branch information
aceforeverd authored Mar 5, 2024
1 parent 1106259 commit 5e7f266
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,21 @@ jobs:
comment_title: Linux Test Report

macos-cpp:
runs-on: macos-latest
runs-on: macos-12
if: github.repository == '4paradigm/OpenMLDB'
env:
OS: darwin
ARCH: x86_64
NPROC: 3
CTEST_PARALLEL_LEVEL: 1 # parallel test level for ctest (make test)
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# target on macOS >= 12.0
- name: Xcode Select Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.0.1'

- name: prepare release
run: |
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:
# mac job for java sdk. steps are almost same with job 'java-sdk'
# except mvn deploy won't target all modules, just hybridse-native & openmldb-native
# the job only run on tag push or manual workflow dispatch due to no test runs
runs-on: macos-latest
runs-on: macos-12
needs:
- java-sdk
if: github.event_name == 'push'
Expand All @@ -160,7 +160,13 @@ jobs:
OPENMLDB_BUILD_TARGET: "cp_native_so openmldb"
NPROC: 3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# target on macOS >= 12.0
- name: Xcode Select Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.0.1'

- name: Cache local Maven repository
uses: actions/cache@v3
Expand Down Expand Up @@ -312,7 +318,13 @@ jobs:
SQL_PYSDK_ENABLE: ON
OPENMLDB_BUILD_TARGET: "cp_python_sdk_so openmldb"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# target on macOS >= 12.0
- name: Xcode Select Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.0.1'

- name: prepare release
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
Expand Down

0 comments on commit 5e7f266

Please sign in to comment.