-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update OpenVR to v2.5.1, no longer using static bindings committed ma…
…nually, workflow for building and testing on all platforms (#15) * Added a workflow to compile on windows, linux, and mac. * Update openvr v2.5.1 (#1) * Update openvr dependency to v2.5.1. * Update dependencies and rebuild bindings - no longer get errors generating bindings or running tests (on Windows at least). * Run actions on every branch. * Remove the buildtime_bindgen feature, lets just always generate bindings since they need to be different on each platform. In the future if needed windows, mac, and linux bindings could be prebuilt and committed and used via a feature for quicker builds. * Fix missing import, add edition to Cargo.toml. * Update version to 2.1.0. * Set min support rust version to 1.82 and test 1.82-1.84 (#2) * Run workflow on multiple versions of rustc. * It seems the unsafe extern issue was fixed in 1.82 so min version will be 1.82 and we will test 1.82 to 1.84. * Remove workaround instructions from README as no longer necessary.
- Loading branch information
Showing
7 changed files
with
44 additions
and
13,618 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
branches: [ "*" ] | ||
pull_request: | ||
branches: [ "*" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
name: "Build and test ${{ matrix.os }} with Rust ${{ matrix.rustc-version }}" | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macOS-latest] | ||
rustc-version: [1.82.0, 1.83.0, 1.84.0] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Install Rust ${{ matrix.rustc-version }} | ||
run: | | ||
rustup install ${{ matrix.rustc-version }} | ||
rustup default ${{ matrix.rustc-version }} | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ Cargo.lock | |
|
||
/.idea/ | ||
/.vscode/ | ||
|
||
bindings.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.