Skip to content

Commit

Permalink
Merge pull request #421 from chewing/refactor/symbol-versioning
Browse files Browse the repository at this point in the history
build: simplify CMakeLists.txt
  • Loading branch information
kanru authored Jan 2, 2024
2 parents 5f32c5b + 194acfb commit 42c252c
Show file tree
Hide file tree
Showing 16 changed files with 602 additions and 757 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
CMAKE_GENERATOR: Ninja

jobs:
build:
Expand All @@ -19,7 +20,11 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
with_rust: ['true', 'false']
rust_version: ['1.70', 'stable']
rust_version: ['1.70']
include:
- os: ubuntu-latest
with_rust: true
rust_version: stable
exclude:
- with_rust: 'false'
rust_version: 'stable'
Expand All @@ -31,6 +36,15 @@ jobs:
with:
submodules: 'true'

- if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get install ninja-build
- if: ${{ matrix.os == 'macos-latest' }}
run: brew install ninja
- if: ${{ matrix.os == 'windows-latest' }}
run: choco install ninja
- if: ${{ matrix.os == 'windows-latest' }}
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756

- name: Setup rustup
run: |
rustup default ${{ matrix.rust_version }}
Expand All @@ -50,6 +64,8 @@ jobs:
with:
submodules: 'true'

- run: sudo apt-get install ninja-build

- name: Build
run: cargo xtask build --build-type ${{env.BUILD_TYPE}} --with-rust false --with-hash true --verbose true

Expand All @@ -61,13 +77,15 @@ jobs:
matrix:
with_rust: ['true', 'false']
runs-on: ubuntu-latest
name: with_rust=${{ matrix.with_rust }}
name: Coverage with_rust=${{ matrix.with_rust }}

steps:
- uses: actions/checkout@v3
with:
submodules: 'true'

- run: sudo apt-get install ninja-build

- name: Setup rustup
run: |
rustup default stable
Expand Down
Loading

0 comments on commit 42c252c

Please sign in to comment.