-
Notifications
You must be signed in to change notification settings - Fork 1
105 lines (84 loc) · 2.88 KB
/
release.yml
File metadata and controls
105 lines (84 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
name: Build (${{ matrix.target }})
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
artifact: mcplex-linux-x86_64
- target: x86_64-apple-darwin
os: macos-latest
artifact: mcplex-macos-x86_64
- target: aarch64-apple-darwin
os: macos-latest
artifact: mcplex-macos-aarch64
- target: x86_64-pc-windows-msvc
os: windows-latest
artifact: mcplex-windows-x86_64.exe
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --all-features
- name: Build release binary
run: cargo build --release --target ${{ matrix.target }}
- name: Rename binary (Unix)
if: runner.os != 'Windows'
run: cp target/${{ matrix.target }}/release/mcplex ${{ matrix.artifact }}
- name: Rename binary (Windows)
if: runner.os == 'Windows'
run: cp target/${{ matrix.target }}/release/mcplex.exe ${{ matrix.artifact }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: ${{ matrix.artifact }}
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
name: MCPlex ${{ github.ref_name }}
generate_release_notes: true
body: |
## MCPlex ${{ github.ref_name }}
**The MCP Smart Gateway** — Semantic tool routing, security guardrails, and real-time observability for AI agents.
See [CHANGELOG.md](https://github.com/ModernOps888/mcplex/blob/main/CHANGELOG.md) for full release notes.
### Downloads
| Platform | Binary |
|----------|--------|
| Linux (x86_64) | `mcplex-linux-x86_64` |
| macOS (Intel) | `mcplex-macos-x86_64` |
| macOS (Apple Silicon) | `mcplex-macos-aarch64` |
| Windows (x86_64) | `mcplex-windows-x86_64.exe` |
### Quick Start
```bash
chmod +x mcplex-* # Unix only
./mcplex-linux-x86_64 --config mcplex.toml
```
See [README](https://github.com/ModernOps888/mcplex#readme) for full documentation.
files: |
artifacts/**/*
draft: false
prerelease: false