Skip to content

fix: use libc directly for flock and setpriority on Unix #7

fix: use libc directly for flock and setpriority on Unix

fix: use libc directly for flock and setpriority on Unix #7

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Build Release
run: cargo build --release
- name: Upload Windows artifact
uses: actions/upload-artifact@v4
with:
name: mcp-proxy-windows
path: target/release/mcp-proxy.exe
build-macos-intel:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Build Release
run: cargo build --release
- name: Rename binary
run: mv target/release/mcp-proxy target/release/mcp-proxy-macos-x64
- name: Upload macOS Intel artifact
uses: actions/upload-artifact@v4
with:
name: mcp-proxy-macos-intel
path: target/release/mcp-proxy-macos-x64
build-macos-arm:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Build Release
run: cargo build --release
- name: Rename binary
run: mv target/release/mcp-proxy target/release/mcp-proxy-macos-arm64
- name: Upload macOS ARM artifact
uses: actions/upload-artifact@v4
with:
name: mcp-proxy-macos-arm
path: target/release/mcp-proxy-macos-arm64
release:
needs: [build-windows, build-macos-intel, build-macos-arm]
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Prepare release files
run: |
mkdir -p release
cp artifacts/mcp-proxy-windows/mcp-proxy.exe release/
cp artifacts/mcp-proxy-macos-intel/mcp-proxy-macos-x64 release/
cp artifacts/mcp-proxy-macos-arm/mcp-proxy-macos-arm64 release/
chmod +x release/mcp-proxy-macos-*
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
release/mcp-proxy.exe
release/mcp-proxy-macos-x64
release/mcp-proxy-macos-arm64
generate_release_notes: true