diff --git a/.github/workflows/local-server-build.yml b/.github/workflows/local-server-build.yml new file mode 100644 index 0000000..e4fe767 --- /dev/null +++ b/.github/workflows/local-server-build.yml @@ -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 diff --git a/local_server/Cargo.toml b/local_server/Cargo.toml index a920fab..56f1b38 100644 --- a/local_server/Cargo.toml +++ b/local_server/Cargo.toml @@ -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 diff --git a/package.json b/package.json index 960c6ad..6382b51 100644 --- a/package.json +++ b/package.json @@ -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", @@ -44,4 +44,4 @@ "vite-plugin-externalize-deps": "^0.8.0", "vite-plugin-lib-inject-css": "^1.3.0" } -} \ No newline at end of file +}