Skip to content

Commit

Permalink
Cec-rs bump (#10)
Browse files Browse the repository at this point in the history
* Cec-rs bump

Signed-off-by: Sami Salonen <[email protected]>

* Bump all deps

Signed-off-by: Sami Salonen <[email protected]>

* Use system libcec6 in all github builds

Signed-off-by: Sami Salonen <[email protected]>

Signed-off-by: Sami Salonen <[email protected]>
  • Loading branch information
ssalonen authored Aug 28, 2022
1 parent c6ccfe8 commit 5a77afc
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 55 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
matrix:
rust: [stable]
job:
- os: ubuntu-latest
- os: ubuntu-22.04
os-name: linux
target: aarch64-unknown-linux-gnu
architecture: aarch64
binary-postfix: ""
use-cross: true
- os: ubuntu-latest
- os: ubuntu-22.04
os-name: linux
target: arm-unknown-linux-gnueabi
architecture: arm
binary-postfix: ""
use-cross: true
- os: ubuntu-latest
- os: ubuntu-22.04
os-name: linux
target: armv7-unknown-linux-gnueabihf
architecture: armv7
Expand All @@ -41,6 +41,8 @@ jobs:
override: true
- name: Checkout repository
uses: actions/checkout@v2
- 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
- name: Cargo build
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -94,11 +96,11 @@ jobs:

publish-cargo:
name: Publishing to Cargo
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
- name: Install libudev for cargo publish. Needed by libcec build
run: sudo apt-get install libudev-dev
- 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
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
matrix:
rust: [stable]
job:
- os: ubuntu-latest
- os: ubuntu-22.04
target: aarch64-unknown-linux-gnu
use-cross: true
- os: ubuntu-latest
- os: ubuntu-22.04
target: arm-unknown-linux-gnueabi
use-cross: true
- os: ubuntu-latest
- os: ubuntu-22.04
target: armv7-unknown-linux-gnueabihf
use-cross: true
steps:
Expand All @@ -34,6 +34,8 @@ jobs:
profile: minimal
target: ${{ matrix.job.target }}
override: true
- 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
- name: Cargo test
uses: actions-rs/cargo@v1
with:
Expand All @@ -44,7 +46,7 @@ jobs:

rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -63,7 +65,7 @@ jobs:

clippy:
name: Clippy
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -84,14 +86,14 @@ jobs:

coverage:
name: Code coverage
runs-on: ubuntu-latest
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 libcec4 libcec-dev pkg-config libp8-platform-dev
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:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## 3.0.0

- cec-rs updated to v6. CI/CD compiled now against cec6

## 2.0.0

- libcec-sys update. Now support libcec version 4, 5 and 6.
Expand Down
80 changes: 40 additions & 40 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ path = 'src/bin.rs'

[package]
name = 'cec-alsa-sync'
version = "2.0.1-alpha.0"
version = "3.0.0-alpha.0"
authors = ['Sami Salonen']
edition = '2018'
license = 'GPL-2.0'
Expand All @@ -18,7 +18,7 @@ homepage = 'https://github.com/ssalonen/cec-alsa-sync'
repository = 'https://github.com/ssalonen/cec-alsa-sync'

[dependencies]
cec-rs = '4.0.0'
cec-rs = '6.0.0'
env_logger = '0.9.0'
log = '0.4.11'

Expand Down

0 comments on commit 5a77afc

Please sign in to comment.