mirror of
https://github.com/wisdgod/cursor-api.git
synced 2025-12-24 13:38:01 +08:00
这是可回退普通版的提交
This commit is contained in:
34
.github/workflows/build-linux.yml
vendored
Normal file
34
.github/workflows/build-linux.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Build Linux Binaries
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build ${{ matrix.target }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
target: [x86_64-unknown-linux-gnu]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: ${{ matrix.target }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y protobuf-compiler pkg-config libssl-dev nodejs npm
|
||||
|
||||
- name: Build binary
|
||||
run: cargo build --release --target ${{ matrix.target }}
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4.5.0
|
||||
with:
|
||||
name: cursor-api-${{ matrix.target }}
|
||||
path: target/${{ matrix.target }}/release/cursor-api
|
||||
Reference in New Issue
Block a user