mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
Update subproject commit reference and enhance GitHub workflows
- Updated the subproject commit reference in the skills directory. - Modified the build workflow to enable submodule fetching. - Standardized quotation styles in the package-and-publish workflow for consistency. - Refactored the `setSkillOAuthCredential` function for improved readability. - Added an attribute to the `Error` variant in the `SkillMessage` enum to suppress warnings for unused code.
This commit is contained in:
@@ -21,6 +21,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
submodules: true
|
||||
|
||||
- name: Setup Node.js 24.x
|
||||
uses: actions/setup-node@v4
|
||||
|
||||
@@ -14,7 +14,7 @@ on:
|
||||
branches:
|
||||
- develop
|
||||
workflow_run:
|
||||
workflows: ["Version Bump"]
|
||||
workflows: ['Version Bump']
|
||||
types:
|
||||
- completed
|
||||
branches:
|
||||
@@ -169,15 +169,15 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
settings:
|
||||
- platform: "macos-latest"
|
||||
args: "--target aarch64-apple-darwin"
|
||||
target: "aarch64-apple-darwin"
|
||||
- platform: "macos-latest"
|
||||
args: "--target x86_64-apple-darwin"
|
||||
target: "x86_64-apple-darwin"
|
||||
- platform: "ubuntu-22.04"
|
||||
args: ""
|
||||
target: ""
|
||||
- platform: 'macos-latest'
|
||||
args: '--target aarch64-apple-darwin'
|
||||
target: 'aarch64-apple-darwin'
|
||||
- platform: 'macos-latest'
|
||||
args: '--target x86_64-apple-darwin'
|
||||
target: 'x86_64-apple-darwin'
|
||||
- platform: 'ubuntu-22.04'
|
||||
args: ''
|
||||
target: ''
|
||||
runs-on: ${{ matrix.settings.platform }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -197,7 +197,7 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24.x
|
||||
cache: "yarn"
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install Rust stable
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
@@ -320,7 +320,7 @@ jobs:
|
||||
# macOS 10.15+ required for std::filesystem used by llama.cpp
|
||||
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.settings.platform == 'macos-latest' && '10.15' || '' }}
|
||||
with:
|
||||
args: "-c ${{ steps.config-overrides.outputs.json }} ${{ matrix.settings.args }}"
|
||||
args: '-c ${{ steps.config-overrides.outputs.json }} ${{ matrix.settings.args }}'
|
||||
includeDebug: ${{ needs.get-version.outputs.should-publish == '' && inputs.forceRelease != 'true' }}
|
||||
includeRelease: ${{ needs.get-version.outputs.should-publish != '' || inputs.forceRelease == 'true' }}
|
||||
# TDLib dylibs are now bundled natively via build.rs + tauri.conf.json macOS.frameworks
|
||||
|
||||
+1
-1
Submodule skills updated: 8030aef027...2dbb87011a
@@ -87,6 +87,7 @@ pub enum SkillMessage {
|
||||
reply: tokio::sync::oneshot::Sender<Result<(), String>>,
|
||||
},
|
||||
/// Notify the skill of an error from an async operation.
|
||||
#[allow(dead_code)]
|
||||
Error {
|
||||
error_type: String,
|
||||
message: String,
|
||||
|
||||
@@ -58,7 +58,10 @@ const skillsSlice = createSlice({
|
||||
}
|
||||
},
|
||||
|
||||
setSkillOAuthCredential(state, action: PayloadAction<{ skillId: string; credential: OAuthCredential | undefined }>) {
|
||||
setSkillOAuthCredential(
|
||||
state,
|
||||
action: PayloadAction<{ skillId: string; credential: OAuthCredential | undefined }>
|
||||
) {
|
||||
const { skillId, credential } = action.payload;
|
||||
if (state.skills[skillId]) {
|
||||
state.skills[skillId].oauthCredential = credential;
|
||||
|
||||
Reference in New Issue
Block a user