Skip to content

Commit

Permalink
chore: update local build for Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Sep 28, 2024
1 parent 56f2990 commit 30b2d36
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 3 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/local-server-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: LocalServer Build

on:
push:
branches: [ "master" ]

permissions:
contents: write


env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: macos-latest

steps:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Cache cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo index
uses: actions/cache@v3
with:
path: ~/.cargo/index
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-index-
- name: Cache cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Build Server
run: cargo build --release --manifest-path=local_server/Cargo.toml
2 changes: 1 addition & 1 deletion local_server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "b3_server"
version = "0.1.0"
version = "0.2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"directories": {
"doc": "docs"
},
"version": "0.1.0",
"version": "0.2.0",
"scripts": {
"serve-llmapi": "pnpm -F @studio-b3/llmapi watch",
"serve-core": "pnpm -F @studio-b3/web-core watch",
Expand Down Expand Up @@ -44,4 +44,4 @@
"vite-plugin-externalize-deps": "^0.8.0",
"vite-plugin-lib-inject-css": "^1.3.0"
}
}
}

0 comments on commit 30b2d36

Please sign in to comment.