Skip to content

feat: support jsonpath #212

feat: support jsonpath

feat: support jsonpath #212

Workflow file for this run

name: CI / Test (x86)
permissions:
contents: read
actions: write
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches: [ master ]
paths-ignore:
- 'docs/**'
- 'licenses/**'
- '**/*.md'
- 'Doxyfile'
- '.vscode/**'
pull_request:
workflow_dispatch:
jobs:
test-llvm:
name: clang ${{ matrix.llvm_version }} / ${{ matrix.tool }} / ${{ matrix.arch }}
runs-on: ubuntu-24.04
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
llvm_version: ['11', '16.0.4', '17']
tool: ['cmake', 'bazel']
arch: [westmere, haswell]
exclude:
- tool: 'cmake'
arch: westmere
env:
CC: clang
CXX: clang++
steps:
- uses: actions/checkout@v4
- name: Read Bazel version
if: matrix.tool == 'bazel'
run: |
echo "BAZEL_VERSION=$(cat .bazelversion)" >> "$GITHUB_ENV"
- name: Cache Bazel
if: matrix.tool == 'bazel'
uses: actions/cache@v4
with:
path: |
~/.cache/bazel
~/.cache/bazelisk
key: ${{ runner.os }}-bazel-${{ env.BAZEL_VERSION }}-${{ hashFiles('MODULE.bazel.lock', 'WORKSPACE.bzlmod', 'BUILD.bazel') }}
restore-keys: |
${{ runner.os }}-bazel-${{ env.BAZEL_VERSION }}-
${{ runner.os }}-bazel-
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: ${{ matrix.llvm_version }}
- name: Setup bazel
if: matrix.tool == 'bazel'
uses: jwlawson/actions-setup-bazel@v2
with:
bazel-version: "${{ env.BAZEL_VERSION }}"
- name: Setup cmake
if: matrix.tool == 'cmake'
uses: jwlawson/actions-setup-cmake@v1
with:
cmake-version: "3.31.10"
- name: Run ${{ matrix.arch }} Test Use Bazel
if: matrix.tool == 'bazel'
run: |
bash ./scripts/unittest.sh -c --arch=${{ matrix.arch }}
- name: Run Test Use CMake
if: matrix.tool == 'cmake'
run: |
bash ./scripts/run_cmake.sh
test-gcc:
name: gcc ${{ matrix.gcc_version }} / ${{ matrix.tool }} / ${{ matrix.arch }} / ${{ matrix.dispatch }}
runs-on: ubuntu-24.04
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
gcc_version: ['9', '12']
tool: ['cmake', 'bazel']
arch: [westmere, haswell]
dispatch: [static, dynamic]
exclude:
- tool: 'bazel'
arch: haswell
dispatch: dynamic
- tool: 'cmake'
dispatch: dynamic
- tool: 'cmake'
arch: westmere
env:
CC: gcc-${{ matrix.gcc_version }}
CXX: g++-${{ matrix.gcc_version}}
steps:
- uses: actions/checkout@v4
- name: Read Bazel version
if: matrix.tool == 'bazel'
run: |
echo "BAZEL_VERSION=$(cat .bazelversion)" >> "$GITHUB_ENV"
- name: Install GCC
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends gcc-${{ matrix.gcc_version }} g++-${{ matrix.gcc_version }}
- name: Cache Bazel
if: matrix.tool == 'bazel'
uses: actions/cache@v4
with:
path: |
~/.cache/bazel
~/.cache/bazelisk
key: ${{ runner.os }}-bazel-${{ env.BAZEL_VERSION }}-${{ hashFiles('MODULE.bazel.lock', 'WORKSPACE.bzlmod', 'BUILD.bazel') }}
restore-keys: |
${{ runner.os }}-bazel-${{ env.BAZEL_VERSION }}-
${{ runner.os }}-bazel-
- name: Setup bazel
if: matrix.tool == 'bazel'
uses: jwlawson/actions-setup-bazel@v2
with:
bazel-version: "${{ env.BAZEL_VERSION }}"
- name: Setup cmake
if: matrix.tool == 'cmake'
uses: jwlawson/actions-setup-cmake@v1
with:
cmake-version: "3.31.10"
- name: Run ${{ matrix.arch }} ${{ matrix.dispatch }} Test Use Bazel
if: matrix.tool == 'bazel'
run: |
bash ./scripts/unittest.sh -g --arch=${{ matrix.arch }} --dispatch=${{ matrix.dispatch }}
- name: Run Test Use CMake
if: matrix.tool == 'cmake'
run: |
bash ./scripts/run_cmake.sh