diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index ca04789..330e8f9 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -28,20 +28,21 @@ jobs: run: dotnet restore Jellyfin.Plugin.SRFPlay.sln - name: Build solution - run: dotnet build Jellyfin.Plugin.SRFPlay.sln --configuration Release --no-restore + run: dotnet build Jellyfin.Plugin.SRFPlay.sln --configuration Release --no-restore --no-self-contained - name: Run tests run: dotnet test Jellyfin.Plugin.SRFPlay.sln --no-build --configuration Release --verbosity normal - name: Install JPRM run: | - pip install --user jprm + python3 -m venv /tmp/jprm-venv + /tmp/jprm-venv/bin/pip install jprm - name: Build Jellyfin Plugin id: jprm run: | # Build plugin using JPRM - python -m jprm --verbosity=debug plugin build ./ + /tmp/jprm-venv/bin/jprm --verbosity=debug plugin build ./ # Find the generated zip file ARTIFACT=$(find . -name "*.zip" -type f -print -quit) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index c6d4111..7794b98 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -44,20 +44,21 @@ jobs: run: dotnet restore Jellyfin.Plugin.SRFPlay.sln - name: Build solution - run: dotnet build Jellyfin.Plugin.SRFPlay.sln --configuration Release --no-restore + run: dotnet build Jellyfin.Plugin.SRFPlay.sln --configuration Release --no-restore --no-self-contained - name: Run tests run: dotnet test Jellyfin.Plugin.SRFPlay.sln --no-build --configuration Release --verbosity normal - name: Install JPRM run: | - pip install --user jprm + python3 -m venv /tmp/jprm-venv + /tmp/jprm-venv/bin/pip install jprm - name: Build Jellyfin Plugin id: jprm run: | # Build plugin using JPRM - python -m jprm --verbosity=debug plugin build ./ + /tmp/jprm-venv/bin/jprm --verbosity=debug plugin build ./ # Find the generated zip file ARTIFACT=$(find . -name "*.zip" -type f -print -quit) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index a460c8b..1075290 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -30,7 +30,7 @@ jobs: run: dotnet restore Jellyfin.Plugin.SRFPlay.sln - name: Build solution - run: dotnet build Jellyfin.Plugin.SRFPlay.sln --configuration Debug --no-restore + run: dotnet build Jellyfin.Plugin.SRFPlay.sln --configuration Debug --no-restore --no-self-contained - name: Run tests run: dotnet test Jellyfin.Plugin.SRFPlay.sln --no-build --configuration Debug --verbosity normal --logger "trx;LogFileName=test-results.trx"