Skip to content

Commit

Permalink
Rewrite in Rust :) (#21)
Browse files Browse the repository at this point in the history
* Rwrite in Rust :)

* Always build with VNC support in docker image

* fix: Comilation with alpha feature

* feat: Build in NixOS

* Add ffmpeg sink again

* Improve signal handling (slightly)

* Improve CI build checks

* fix typo in GH action

* Improve CI

* Set version to 0.12.0

* Get CI green

* Try to compile macOS arm as well

* Improve docs in CI

* fix CLI arg docs
  • Loading branch information
sbernauer committed May 15, 2024
1 parent c5be21f commit e356974
Show file tree
Hide file tree
Showing 38 changed files with 2,236 additions and 1,243 deletions.
39 changes: 31 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,21 @@ jobs:
override: true
- name: Install libvncserver-dev
run: sudo apt install -y libvncserver-dev
- uses: actions-rs/cargo@v1
- name: Test with all features turned off
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features
- name: Test with all features turned on
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- name: Test vnc features
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --features vnc

run_build:
name: Build for ${{ matrix.target }}
Expand All @@ -139,9 +151,9 @@ jobs:
- target: x86_64-apple-darwin
os: macos-latest
file-suffix: ""
# - target: aarch64-apple-darwin
# os: macos-latest
# file-suffix: ""
- target: aarch64-apple-darwin
os: macos-latest
file-suffix: ""
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -150,6 +162,8 @@ jobs:
toolchain: nightly
target: ${{ matrix.target }}
override: true
- name: Print CPU architecture
run: uname -m && uname -a
- if: runner.os == 'Linux'
run: sudo apt install -y libvncserver-dev
- if: runner.os == 'macOS'
Expand All @@ -163,7 +177,16 @@ jobs:
with:
command: build
args: --target=${{ matrix.target }} --no-default-features
- uses: actions-rs/cargo@v1
with:
command: build
args: --target=${{ matrix.target }} --all-features
# Currently the macOS build is broken because of
#
# error: failed to run custom build command for `vncserver v0.2.2 (https://github.com/sbernauer/libvnc-rs.git#2bf903ad)`
# thread 'main' panicked at /Users/runner/.cargo/git/checkouts/libvnc-rs-5fba04f2b7022219/2bf903a/vncserver/build.rs:9:66:
# called `Result::unwrap()` on an `Err` value: pkg-config has not been configured to support cross-compilation.
#
# This is because GitHub switched their macOS runners to use arm, and they currently can not cross-compile to x86.
# What a time to be alive!
#
# - uses: actions-rs/cargo@v1
# with:
# command: build
# args: --target=${{ matrix.target }} --all-features
Loading

0 comments on commit e356974

Please sign in to comment.