Try to add release files
This commit is contained in:
parent
717c5c54a5
commit
d303f1e24a
|
|
@ -2,7 +2,8 @@ name: CI release
|
|||
run-name: CI release
|
||||
on:
|
||||
push:
|
||||
tags: '*'
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
|
@ -16,11 +17,13 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- run: cargo fmt --check
|
||||
- uses: https://github.com/Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: ${{ matrix.target }}
|
||||
- name: cross compile for ${{ matrix.target }}
|
||||
run: cross build --target ${{ matrix.target }} --release
|
||||
- uses: actions/release-action@main
|
||||
with:
|
||||
files: |-
|
||||
target/${{ matrix.target }}/release/crabidy-server
|
||||
target/${{ matrix.target }}/release/cbd-tui.d
|
||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||
pre_release: true
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
tokio::task::spawn_blocking(|| {
|
||||
run_ui(ui_tx, ui_rx);
|
||||
})
|
||||
.await;
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
@ -55,14 +55,16 @@ async fn orchestrate<'a>(
|
|||
let mut rpc_client = rpc::RpcClient::connect(&config.server.address).await?;
|
||||
|
||||
if let Some(root_node) = rpc_client.get_library_node("node:/").await? {
|
||||
tx.send(MessageToUi::ReplaceLibraryNode(root_node.clone()));
|
||||
tx.send(MessageToUi::ReplaceLibraryNode(root_node.clone()))?;
|
||||
}
|
||||
|
||||
let init_data = rpc_client.init().await?;
|
||||
tx.send_async(MessageToUi::Init(init_data)).await?;
|
||||
|
||||
loop {
|
||||
poll(&mut rpc_client, &rx, &tx).await.ok();
|
||||
if let Err(er) = poll(&mut rpc_client, &rx, &tx).await {
|
||||
println!("ERROR");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue