Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisMik committed Jan 14, 2025
1 parent da7d4ba commit 0e5d25c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 56 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/rust-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ jobs:
working-directory: binding/rust

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Run clippy
run: cargo clippy -- -D warnings
Expand All @@ -69,11 +65,7 @@ jobs:
working-directory: binding/rust

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Run clippy
run: cargo clippy -- -D warnings
11 changes: 2 additions & 9 deletions .github/workflows/rust-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ jobs:
working-directory: binding/rust

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Rust build demo
run: cargo build --verbose
Expand All @@ -70,10 +66,7 @@ jobs:
working-directory: binding/rust

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Rust build demo
run: cargo build --verbose
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ jobs:
run: bash copy.sh

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Build
run: cargo build --verbose
Expand Down Expand Up @@ -87,10 +83,7 @@ jobs:
Copy-Item -Path "..\..\lib\windows" -Destination ".\data\lib" -Recurse
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Build
run: cargo build --verbose
Expand Down
47 changes: 19 additions & 28 deletions binding/dotnet/PvRecorder/PvRecorder.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,23 @@
<Link>lib\windows\amd64\libpv_recorder.dll</Link>
<Visible>false</Visible>
</Content>
<Content Include="..\..\..\lib\mac\x86_64\libpv_recorder.dylib">
<PackagePath>
build/netstandard2.0/libpv_recorder.dylib;
build/netcoreapp3.0/lib/mac/x86_64/libpv_recorder.dylib;
build/net6.0/lib/mac/x86_64/libpv_recorder.dylib;
build/net8.0/lib/mac/x86_64/libpv_recorder.dylib;
</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>lib\mac\x86_64\libpv_recorder.dylib</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>

<!--.NET 6.0+ libs-->
<ItemGroup>
<Content Include="..\..\..\lib\windows\arm64\libpv_recorder.dll">
<PackagePath>
build/netstandard2.0/libpv_recorder.dll;
build/netcoreapp3.0/lib/windows/arm64/libpv_recorder.dll;
build/net6.0/lib/windows/arm64/libpv_recorder.dll;
build/net8.0/lib/windows/arm64/libpv_recorder.dll;
</PackagePath>
Expand All @@ -62,33 +75,24 @@
</Content>
<Content Include="..\..\..\lib\linux\x86_64\libpv_recorder.so">
<PackagePath>
build/netstandard2.0/libpv_recorder.so;
build/netcoreapp3.0/lib/linux/x86_64/libpv_recorder.so;
build/net6.0/lib/linux/x86_64/libpv_recorder.so;
build/net8.0/lib/linux/x86_64/libpv_recorder.so;
</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>lib\linux\x86_64\libpv_recorder.so</Link>
<Visible>false</Visible>
</Content>
<Content Include="..\..\..\lib\mac\x86_64\libpv_recorder.dylib">
<Content Include="..\..\..\lib\mac\arm64\libpv_recorder.dylib">
<PackagePath>
build/netstandard2.0/libpv_recorder.dylib;
build/netcoreapp3.0/lib/mac/x86_64/libpv_recorder.dylib;
build/net6.0/lib/mac/x86_64/libpv_recorder.dylib;
build/net8.0/lib/mac/x86_64/libpv_recorder.dylib;
build/net6.0/lib/mac/arm64/libpv_recorder.dylib;
build/net8.0/lib/mac/arm64/libpv_recorder.dylib;
</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>lib\mac\x86_64\libpv_recorder.dylib</Link>
<Link>lib\mac\arm64\libpv_recorder.dylib</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>

<!--.NET Core 3.0+ libs-->
<ItemGroup>
<Content Include="..\..\..\lib\raspberry-pi\**\*" Exclude="..\..\..\lib\raspberry-pi\arm11\*">
<PackagePath>
build/netcoreapp3.0/lib/raspberry-pi;
build/net6.0/lib/raspberry-pi;
build/net8.0/lib/raspberry-pi;
</PackagePath>
Expand All @@ -98,19 +102,6 @@
</Content>
</ItemGroup>

<!--.NET 6.0+ libs-->
<ItemGroup>
<Content Include="..\..\..\lib\mac\arm64\libpv_recorder.dylib">
<PackagePath>
build/net6.0/lib/mac/arm64/libpv_recorder.dylib;
build/net8.0/lib/mac/arm64/libpv_recorder.dylib;
</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>lib\mac\arm64\libpv_recorder.dylib</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>

<!--Resource files-->
<ItemGroup>
<Folder Include="Content\" />
Expand Down

0 comments on commit 0e5d25c

Please sign in to comment.