Skip to content

Commit

Permalink
Mute special behaviour (#16)
Browse files Browse the repository at this point in the history
* Update description

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* Configurable behaviour for commands

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* Cleanup

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* Disable code coverage

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

---------

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
  • Loading branch information
ssalonen committed Mar 25, 2023
1 parent f15cce0 commit 7bfb9ef
Show file tree
Hide file tree
Showing 8 changed files with 278 additions and 104 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-cargo:
name: Publishing to Cargo
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
- name: Install dependencies to avoid vendored libcec build in libcec-sys
run: sudo apt-get install libudev-dev libcec6 libcec-dev pkg-config libp8-platform-dev
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: publish
args: --token ${{ secrets.CARGO_API_KEY }} --allow-dirty
#publish-cargo:
# name: Publishing to Cargo
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@master
# - name: Install dependencies to avoid vendored libcec build in libcec-sys
# run: sudo apt-get install libudev-dev libcec6 libcec-dev pkg-config libp8-platform-dev
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# profile: minimal
# override: true
# - uses: actions-rs/cargo@v1
# with:
# command: publish
# args: --token ${{ secrets.CARGO_API_KEY }} --allow-dirty
55 changes: 28 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,30 +84,31 @@ jobs:
command: clippy
args: -- --target x86_64-unknown-linux-gnu -D warnings

coverage:
name: Code coverage
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update apt
run: sudo apt-get update
- name: Install dependencies for build and coverage
run: sudo apt-get install libudev-dev libcec6 libcec-dev pkg-config libp8-platform-dev
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1.3
with:
args: "--ignore-tests --out Lcov"
- name: Upload to Coveralls
# upload only if push
if: ${{ github.event_name == 'push' }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./lcov.info"
# broken (and not useful)
# coverage:
# name: Code coverage
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
# - name: Update apt
# run: sudo apt-get update
# - name: Install dependencies for build and coverage
# run: sudo apt-get install libudev-dev libcec6 libcec-dev pkg-config libp8-platform-dev
# - name: Install stable toolchain
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# profile: minimal
# override: true
# - name: Run cargo-tarpaulin
# uses: actions-rs/tarpaulin@v0.1.3
# with:
# args: "--ignore-tests --out Lcov"
# - name: Upload to Coveralls
# # upload only if push
# if: ${{ github.event_name == 'push' }}
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: "./lcov.info"
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## 3.1.0


- CI: utilize Cross `pre-build` instead of pre-built docker images
- Support running custom commands on vol up, vol down, or mute button press.

## 3.0.3

Expand Down
115 changes: 82 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7bfb9ef

Please sign in to comment.