mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 06:17:55 +00:00
generate command parser bindings in ci
This commit is contained in:
parent
f4216a83a9
commit
ac5a1c6bea
2 changed files with 22 additions and 12 deletions
33
.github/workflows/dotnet.yml
vendored
33
.github/workflows/dotnet.yml
vendored
|
|
@ -3,22 +3,22 @@ name: .net checks
|
|||
on:
|
||||
push:
|
||||
paths:
|
||||
- .github/workflows/dotnet.yml
|
||||
- 'Myriad/**'
|
||||
- 'PluralKit.API/**'
|
||||
- 'PluralKit.Bot/**'
|
||||
- 'PluralKit.Core/**'
|
||||
- .github/workflows/dotnet.yml
|
||||
- "Myriad/**"
|
||||
- "PluralKit.API/**"
|
||||
- "PluralKit.Bot/**"
|
||||
- "PluralKit.Core/**"
|
||||
pull_request:
|
||||
paths:
|
||||
- .github/workflows/dotnet.yml
|
||||
- 'Myriad/**'
|
||||
- 'PluralKit.API/**'
|
||||
- 'PluralKit.Bot/**'
|
||||
- 'PluralKit.Core/**'
|
||||
- .github/workflows/dotnet.yml
|
||||
- "Myriad/**"
|
||||
- "PluralKit.API/**"
|
||||
- "PluralKit.Bot/**"
|
||||
- "PluralKit.Core/**"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: 'run .net tests'
|
||||
name: "run .net tests"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
@ -30,6 +30,17 @@ jobs:
|
|||
with:
|
||||
dotnet-version: 8.0.x
|
||||
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
|
||||
- name: install uniffi
|
||||
run: cargo install uniffi-bindgen-cs --git https://github.com/NordSecurity/uniffi-bindgen-cs --tag v0.8.3+v0.25.0
|
||||
|
||||
- name: generate command parser bindings
|
||||
run: |
|
||||
cargo -Z unstable-options build --package commands --lib --release --artifact-dir obj/
|
||||
uniffi-bindgen-cs "obj/libcommands.so" --library --out-dir="./PluralKit.Bot"
|
||||
cargo run --package commands --bin write_cs_glue -- "./PluralKit.Bot"/commandtypes.cs
|
||||
|
||||
- name: Run automated tests
|
||||
run: dotnet test --configuration Release
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue