Browse Source

use arm64 runners for arm builds (#2192)

* use arm64 runners for arm builds

* use matrix for linux builds on prs

* remove unused "kind"
pull/2193/head
Jason Dove 3 weeks ago committed by GitHub
parent
commit
8f6d208e31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      .github/workflows/artifacts.yml
  2. 5
      .github/workflows/docker.yml
  3. 17
      .github/workflows/pr.yml

4
.github/workflows/artifacts.yml

@ -151,10 +151,10 @@ jobs: @@ -151,10 +151,10 @@ jobs:
- os: ubuntu-latest
kind: linux
target: linux-musl-x64
- os: ubuntu-latest
- os: ubuntu-24.04-arm
kind: linux
target: linux-arm
- os: ubuntu-latest
- os: ubuntu-24.04-arm
kind: linux
target: linux-arm64
- os: windows-latest

5
.github/workflows/docker.yml

@ -22,20 +22,23 @@ on: @@ -22,20 +22,23 @@ on:
jobs:
build_and_push:
name: Build & Publish
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
if: contains(github.event.head_commit.message, '[no build]') == false
strategy:
matrix:
include:
- name: base
os: ubuntu-latest
path: ''
suffix: ''
qemu: false
- name: arm32v7
os: ubuntu-24.04-arm
path: 'arm32v7/'
suffix: '-arm'
qemu: true
- name: arm64
os: ubuntu-24.04-arm
path: 'arm64/'
suffix: '-arm64'
qemu: true

17
.github/workflows/pr.yml

@ -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

Loading…
Cancel
Save