Skip to content

Commit

Permalink
ci: depoly debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticLampyrid committed Feb 21, 2024
1 parent e60a7cc commit b89bfb1
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,23 @@ jobs:
with:
files: |
win32_installer/*.exe
deploy-linux:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install Packaging Tools
run: cargo install cargo-deb
- name: Build (Release)
run: cargo build --release --verbose
- name: Package (Debian)
run: |
cargo deb -p stm32tesseract --no-build --verbose
cargo deb -p stm32tesseract-gui --no-build --verbose
- name: Release (GitHub)
uses: softprops/action-gh-release@v1
with:
files: |
target/debian/stm32tesseract_*.deb
target/debian/stm32tesseract-gui_*.deb
17 changes: 17 additions & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name = "stm32tesseract"
version = "0.1.1"
edition = "2021"
authors = ["ArcticLampyrid <[email protected]>"]
license = "BSD-3-Clause"

[dependencies]
clap = { version = "4.4.6", features = ["derive"] }
Expand All @@ -27,3 +29,18 @@ semver = "1.0"

[target.'cfg(windows)'.dependencies]
winreg = "0.51.0"

[package.metadata.deb]
depends = []
assets = [
[
"target/release/stm32tesseract",
"usr/bin/",
"755",
],
[
"resources/**/*",
"var/lib/stm32tesseract/resources",
"644",
],
]
5 changes: 5 additions & 0 deletions gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name = "stm32tesseract-gui"
version = "0.1.1"
edition = "2021"
build = "build.rs"
authors = ["ArcticLampyrid <[email protected]>"]
license = "BSD-3-Clause"

[dependencies]
clap = { version = "4.4.6", features = ["derive"] }
Expand All @@ -24,3 +26,6 @@ check_elevation = "0.2"
[build-dependencies]
slint-build = "1.0"
embed-resource = "2.3"

[package.metadata.deb]
depends = ["stm32tesseract"]

0 comments on commit b89bfb1

Please sign in to comment.