Skip to content

Commit

Permalink
build and release debian app
Browse files Browse the repository at this point in the history
  • Loading branch information
santhosh-chinnasamy committed Oct 27, 2024
1 parent 3c8a635 commit 3bace90
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Checks

on:
push:

jobs:
run-clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo clippy --all-targets --all-features -- -D warnings
continue-on-error: false
32 changes: 32 additions & 0 deletions .github/workflows/debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Debian

permissions:
contents: write

on:
push:
tags:
- v[0-9]+.*

jobs:
aarch64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set version
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
- name: build-debian
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: aarch64-unknown-linux-gnu
- run: |
cargo install cargo-deb
cargo deb
ls -la target/debian
mv target/debian/cliq_0.4.1-1_arm64.deb target/debian/cliq-${RELEASE_VERSION}-arm64.deb
- name: Upload deb
uses: actions/upload-artifact@v2
with:
name: cliq-arm64v${RELEASE_VERSION}.deb
path: target/debian/*.deb
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cliq"
description = "open frequently accessed memorable shorten urls from cli"
description = "Open frequently accessed memorable shorten urls from cli"
version = "0.4.1"
edition = "2021"
authors = ["Santhosh Chinnasamy"]
Expand Down

0 comments on commit 3bace90

Please sign in to comment.