Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- run: cargo test
- run: cargo test --features mcp
- name: Run release-plz
uses: release-plz/action@v0.5
with:
Expand All @@ -46,6 +47,7 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- run: cargo test
- run: cargo test --features mcp
- name: Run release-plz
uses: release-plz/action@v0.5
with:
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
strategy:
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
features: [default, mcp]

runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -20,7 +21,7 @@ jobs:
with:
path: |
~/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.features }}

# - name: Setup pnpm
# uses: pnpm/action-setup@v2
Expand All @@ -38,8 +39,12 @@ jobs:

- name: Run test suite
working-directory: ./
run: cargo test

run: cargo test ${{ matrix.features == 'mcp' && '--features mcp' || '' }}
env:
# When testing the mcp feature build, skip default insta snapshots (help/output
# diverges due to --mcp, --export-skills, etc.) and run mcp-specific help snapshots instead.
SEM_TOOL_SKIP_INSTA: ${{ matrix.features == 'mcp' && '1' || '' }}
SEM_TOOL_MCP_HELP: ${{ matrix.features == 'mcp' && '1' || '' }}
- name: Do a simple build
working-directory: ./
run: cargo build
run: cargo build ${{ matrix.features == 'mcp' && '--features mcp' || '' }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.vscode
/target
*.snap.new
16 changes: 11 additions & 5 deletions .release-plz.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
[[package]]
name="sem-tool"
name = "sem-tool"
version_group = "sem-tool"

# `git_release_enable` is used by the `release-plz` tool to enable/disable
# some form of "Release API", but we allow `dist` to publish the `release`
# on Github.
git_release_enable = false
# release-plz still drives the release (versioning, tagging, crates.io publish).
# We leave GitHub Release creation to dist: the tag pushed by release-plz
# triggers the Release workflow, and dist builds artifacts and creates the
# GitHub Release with installers/binaries. Avoids duplicate or empty releases.
git_release_enable = false

[[package]]
name = "sem-tool-mcp"
version_group = "sem-tool"
Loading