|
|
|
@ -33,7 +33,18 @@ jobs:
@@ -33,7 +33,18 @@ jobs:
|
|
|
|
|
cd ErsatzTV-Windows |
|
|
|
|
cargo build --release --all-features |
|
|
|
|
build_and_test_linux: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
|
strategy: |
|
|
|
|
matrix: |
|
|
|
|
include: |
|
|
|
|
- os: ubuntu-latest |
|
|
|
|
target: linux-x64 |
|
|
|
|
- os: ubuntu-latest |
|
|
|
|
target: linux-musl-x64 |
|
|
|
|
- os: ubuntu-24.04-arm |
|
|
|
|
target: linux-arm |
|
|
|
|
- os: ubuntu-24.04-arm |
|
|
|
|
target: linux-arm64 |
|
|
|
|
steps: |
|
|
|
|
- name: Get the sources |
|
|
|
|
uses: actions/checkout@v4 |
|
|
|
@ -47,13 +58,13 @@ jobs:
@@ -47,13 +58,13 @@ jobs:
|
|
|
|
|
run: dotnet clean --configuration Release && dotnet nuget locals all --clear |
|
|
|
|
|
|
|
|
|
- name: Install dependencies |
|
|
|
|
run: dotnet restore -p:RestoreEnablePackagePruning=true -r linux-x64 |
|
|
|
|
run: dotnet restore -p:RestoreEnablePackagePruning=true -r "${{ matrix.target }}" |
|
|
|
|
|
|
|
|
|
- name: Prep project file |
|
|
|
|
run: sed -i '/Scanner/d' ErsatzTV/ErsatzTV.csproj |
|
|
|
|
|
|
|
|
|
- name: Build |
|
|
|
|
run: dotnet build ErsatzTV/ErsatzTV.csproj --runtime linux-x64 --configuration Release --no-restore && dotnet build --configuration Release --no-restore |
|
|
|
|
run: dotnet build ErsatzTV/ErsatzTV.csproj --runtime "${{ matrix.target }}" --configuration Release --no-restore && dotnet build --configuration Release --no-restore |
|
|
|
|
|
|
|
|
|
- name: Test |
|
|
|
|
run: dotnet test --blame-hang-timeout "2m" --no-restore --verbosity normal |
|
|
|
|