diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..4c7ceb9 --- /dev/null +++ b/.github/workflows/checks.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml new file mode 100644 index 0000000..0d1a87e --- /dev/null +++ b/.github/workflows/debian.yml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 179f50b..b8218df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"]