Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ryze312/mpv-rpc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.1.1
Choose a base ref
...
head repository: ryze312/mpv-rpc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 7 commits
  • 15 files changed
  • 3 contributors

Commits on Mar 10, 2023

  1. Calm down clippy

    ryze312 committed Mar 10, 2023
    Copy the full SHA
    d104354 View commit details

Commits on Sep 4, 2023

  1. Add Cargo.lock

    ryze312 committed Sep 4, 2023
    Copy the full SHA
    1eca609 View commit details

Commits on May 24, 2024

  1. Copy the full SHA
    216688e View commit details

Commits on Jul 14, 2024

  1. Update Nix flake

    ryze312 committed Jul 14, 2024
    Copy the full SHA
    38b50cc View commit details
  2. Add build workflow

    ryze312 committed Jul 14, 2024
    Copy the full SHA
    dff668c View commit details
  3. Fix hash for rust-toolchain.toml

    ryze312 committed Jul 14, 2024
    Copy the full SHA
    caa7d4c View commit details
  4. Make clippy happy

    ryze312 committed Jul 14, 2024
    Copy the full SHA
    87f401f View commit details
Showing with 1,196 additions and 25 deletions.
  1. +1 −0 .envrc
  2. +54 −0 .github/workflows/build.yml
  3. +1 −1 .gitignore
  4. +1,005 −0 Cargo.lock
  5. +65 −0 flake.lock
  6. +32 −0 flake.nix
  7. +4 −0 rust-toolchain.toml
  8. +12 −0 shell.nix
  9. +1 −1 src/discord_client.rs
  10. +3 −3 src/discord_client/music_brainz.rs
  11. +1 −1 src/lib.rs
  12. +6 −4 src/logging.rs
  13. +8 −9 src/mpv_event_queue.rs
  14. +2 −2 src/mpv_event_queue/events.rs
  15. +1 −4 src/plugin.rs
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
54 changes: 54 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: build-plugin
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- "src/**"
- Cargo.lock
- rust-toolchain.toml
- flake.nix
- flake.lock
- shell.nix

pull_request:
branches: [ main ]
paths:
- "src/**"
- Cargo.lock
- rust-toolchain.toml
- flake.nix
- flake.lock
- shell.nix

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
profile: [ "dev", "release" ]

env:
BUILD_NAME: ${{ matrix.profile == 'dev' && 'debug' || matrix.profile }}

steps:
- uses: actions/checkout@v4

- name: Install Nix
uses: nixbuild/nix-quick-install-action@v28

- name: Check
run: nix develop --command cargo clippy --profile ${{ matrix.profile }} -- -D warnings

- name: Build
run: nix develop --command cargo build --profile ${{ matrix.profile }}

- name: Upload build
uses: actions/upload-artifact@v4
with:
name: mpv-rpc_${{ env.BUILD_NAME }}
path: target/${{ env.BUILD_NAME }}/libmpv_rpc.so
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/target
/Cargo.lock
/.direnv
Loading