mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
Create generate-bindings.yml
This commit is contained in:
38
.github/workflows/generate-bindings.yml
vendored
Normal file
38
.github/workflows/generate-bindings.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
name: Generate Rust Bindings
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
generate-bindings:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set Up Rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y clang llvm-dev
|
||||||
|
|
||||||
|
- name: Build the Project
|
||||||
|
run: cargo build
|
||||||
|
|
||||||
|
- name: Commit Generated Bindings
|
||||||
|
run: |
|
||||||
|
git config --global user.name "GitHub Actions"
|
||||||
|
git config --global user.email "actions@github.com"
|
||||||
|
git add src/bindings/bindings.rs
|
||||||
|
git commit -m "Automatically generated Rust bindings"
|
||||||
|
git push
|
||||||
Reference in New Issue
Block a user