Skip to content

Commit

Permalink
👷 merge build and lint, add debian package lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ad2ien committed Mar 10, 2024
1 parent f8d2438 commit 8ffbd07
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 61 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/build.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/lint-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build debian package

on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_call:

jobs:
lint-markdown:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Lint markdown files
uses: avto-dev/[email protected]
with:
args: "**/*.md"

lint-yaml:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Lint yaml files
uses: ibiqlik/[email protected]

build-package:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libx11-dev xorg-dev libxdo-dev

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cargo lint
run: cargo fmt --all -- --check

- name: Cargo test
run: cargo test

- name: Cargo build
run: cargo build --release

- name: Create and lint debian package
run: ./debian-build.sh --lint
30 changes: 0 additions & 30 deletions .github/workflows/lint.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![Rust](https://img.shields.io/badge/Rust-000000?logo=rust&logoColor=white)
![Debian](https://img.shields.io/badge/Debian-A81D33?logo=debian&logoColor=white)
![GitHub Release Status](https://img.shields.io/github/actions/workflow/status/ad2ien/caps-lock-auto-switch/release.yml?label=release&logo=github&branch=main)
![GitHub Build Status](https://img.shields.io/github/actions/workflow/status/ad2ien/caps-lock-auto-switch/build.yml?label=build&logo=github&branch=main)
![GitHub Build Lint Status](https://img.shields.io/github/actions/workflow/status/ad2ien/caps-lock-auto-switch/lint-build.yml?label=build&logo=github&branch=main)
![License](https://img.shields.io/badge/license-GPL%202%2B%202.0-blue.svg)
![Gitmoji](https://img.shields.io/badge/gitmoji-%20%F0%9F%98%9C%20%F0%9F%98%8D-FFDD67.svg)

Expand Down

0 comments on commit 8ffbd07

Please sign in to comment.