ci: add mac prerequisites

This commit is contained in:
haoranchen 2025-01-16 21:10:13 +08:00 committed by Jinqing Kuang
parent 494fc4cd48
commit b81e412764
1 changed files with 10 additions and 8 deletions

View File

@ -10,8 +10,6 @@ on:
- 'docs/**'
- 'packaging/**'
- 'tests/**'
- 'README.md'
- 'README-CN.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@ -19,11 +17,8 @@ concurrency:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-latest, macos-13, macos-14, macos-15]
name: Build and test on ${{ matrix.os }}
runs-on: ubuntu-latest
name: Build and test
steps:
- name: Checkout the repository
@ -35,11 +30,18 @@ jobs:
go-version: 1.18
- name: Install system dependencies
if: runner.os == 'Linux'
run: |
sudo apt update -y
sudo apt install -y build-essential cmake \
libgeos-dev libjansson-dev libsnappy-dev liblzma-dev libz-dev \
zlib1g pkg-config libssl-dev gawk
zlib1g-dev pkg-config libssl-dev gawk
- name: Install dependencies on macOS
if: runner.os == 'macOS'
run: |
brew update
brew install argp-standalone gflags pkg-config snappy zlib geos jansson gawk openssl
- name: Build and install TDengine
run: |