Compare commits

..

3 Commits

Author SHA1 Message Date
eaeb7cc2d1 feat: migrate to gitea actions 2025-07-23 17:51:49 -04:00
c221dd766b Size Adjustment of UI. 2025-07-23 17:45:44 -04:00
b475ae1e78 feat: add github action for building and releasing 2025-07-23 17:39:21 -04:00
2 changed files with 49 additions and 1 deletions

48
.gitea/workflows/main.yml Normal file
View File

@@ -0,0 +1,48 @@
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
release:
needs: build
if: startsWith(gitea.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build release binary
run: cargo build --release --verbose
- name: Create Release
id: create_release
uses: actions/gitea-create-release@v1
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
with:
tag_name: ${{ gitea.ref }}
release_name: Release ${{ gitea.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/gitea-upload-asset@v1
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/release/tui-mqtt-chat
asset_name: tui-mqtt-chat
asset_content_type: application/octet-stream

View File

@@ -244,7 +244,7 @@ fn ui(f: &mut Frame, app: &mut App) {
let chunks = Layout::default()
.direction(Direction::Vertical)
.margin(1)
.constraints([Constraint::Percentage(80), Constraint::Percentage(20)].as_ref())
.constraints([Constraint::Percentage(70), Constraint::Percentage(30)].as_ref())
.split(f.size());
let messages: Vec<ListItem> = app