Skip to content

Commit

Permalink
Enable Windows in CI (#41)
Browse files Browse the repository at this point in the history
* Enable windows, fixes #27

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

* Use experimental cec-rs, disable non-win builds

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

* Fix typo

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

* rust-cache bump

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

* Re-enable all runs, require libcec >= 4.0.3

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

* changelog

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

* Update deps for example

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

---------

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
  • Loading branch information
ssalonen committed Jul 5, 2023
1 parent 199037a commit 2a568f0
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 65 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,16 @@ jobs:
strategy:
matrix:
job:
# Windows disabled
# See https://github.com/ssalonen/cec-rs/issues/27
# - os: windows-latest
# target: x86_64-pc-windows-msvc
# use-cross: false
# libcec: vendored-libcec
# expected_libcec_abi: 6
# - os: windows-latest
# target: i686-pc-windows-msvc
# use-cross: false
# libcec: vendored-libcec
# expected_libcec_abi: 6
- os: windows-latest
target: x86_64-pc-windows-msvc
use-cross: false
libcec: vendored-libcec
expected_libcec_abi: 6
- os: windows-latest
target: i686-pc-windows-msvc
use-cross: false
libcec: vendored-libcec
expected_libcec_abi: 6
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
use-cross: true
Expand Down Expand Up @@ -101,7 +99,7 @@ jobs:
profile: minimal
target: ${{ matrix.job.target }}
override: true
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
# libcec and p8-platform from apt repo
- if: ${{ !startsWith(matrix.job.libcec, 'vendored') && runner.os == 'Linux' }}
name: Install libcec(-dev) and build dependencies
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]

## 7.1.1

- Require libcec >= 4.0.3 for fixed windows compatibility

## 7.1.0

- Add `get_logical_addresses()`
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ derive_builder = '0.10.2'
num-traits = '0.2.14'

[dependencies.libcec-sys]
version = '4.0.0'
version = '4.0.3'


[dependencies.enum-repr-derive]
version = '0.2.0'
Expand Down
79 changes: 28 additions & 51 deletions examples/cec-example-cli/Cargo.lock

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

0 comments on commit 2a568f0

Please sign in to comment.