Skip to content

Commit

Permalink
first: attempt at adding build/release step
Browse files Browse the repository at this point in the history
Signed-off-by: AlexsJones <[email protected]>
  • Loading branch information
AlexsJones committed Jan 6, 2025
1 parent 5faa10e commit d2439e3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: release
on:
push:
branches:
- main
- '[0-9]+.[0-9]+.x'
workflow_dispatch:
env:
REGISTRY: ghcr.io
GITHUB_PAGES_BRANCH: gh_pages

defaults:
run:
shell: bash

jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [stable-x86_64-unknown-linux-gnu]
steps:
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
EXTRA_FILES: "README.md LICENSE"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Binary
path: |
${{ steps.compile.outputs.BUILT_ARCHIVE }}
${{ steps.compile.outputs.BUILT_CHECKSUM }}
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ fn main() {
std::thread::spawn(move || {
rt.block_on(async {
loop {

tokio::time::sleep(Duration::from_secs(30)).await;
tokio::time::sleep(Duration::from_secs(3000)).await;
}
})
});
Expand Down Expand Up @@ -90,7 +89,6 @@ impl Default for MyApp {

impl MyApp {
fn new(cc: &eframe::CreationContext<'_>) -> Self {

let mut app = Self::default();
// Start the background polling for connection status
app
Expand All @@ -109,7 +107,6 @@ impl MyApp {
} else {
connection_status_tx.send(false).unwrap();
}

tokio::time::sleep(Duration::from_secs(5)).await;
}
});
Expand Down

0 comments on commit d2439e3

Please sign in to comment.