ci: add mac prerequisites
This commit is contained in:
parent
494fc4cd48
commit
b81e412764
|
@ -10,8 +10,6 @@ on:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
- 'packaging/**'
|
- 'packaging/**'
|
||||||
- 'tests/**'
|
- 'tests/**'
|
||||||
- 'README.md'
|
|
||||||
- 'README-CN.md'
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
@ -19,11 +17,8 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
name: Build and test
|
||||||
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 }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
|
@ -35,11 +30,18 @@ jobs:
|
||||||
go-version: 1.18
|
go-version: 1.18
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
sudo apt update -y
|
sudo apt update -y
|
||||||
sudo apt install -y build-essential cmake \
|
sudo apt install -y build-essential cmake \
|
||||||
libgeos-dev libjansson-dev libsnappy-dev liblzma-dev libz-dev \
|
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
|
- name: Build and install TDengine
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue