optimisation of workfows : Skiasharp deps already installed
Some checks failed
Dotnet build and test / build (pull_request) Failing after 20s
Some checks failed
Dotnet build and test / build (pull_request) Failing after 20s
This commit is contained in:
parent
a12830e49b
commit
f28235dd3a
2 changed files with 6 additions and 17 deletions
|
|
@ -19,15 +19,15 @@ on:
|
|||
required: false
|
||||
type: boolean
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: [ "main", "release/*", "hotfix/*", "fix/*" ]
|
||||
pull_request:
|
||||
branches: [ "main", "release/*" ]
|
||||
branches: [ "main", "release/*", "hotfix/*", "fix/*" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: pazof/yavsc-build-env:debian13-dotnet10-android36-jdk21-v1
|
||||
image: pazof/yavsc-build-env:debian13-dotnet10-android36-jdk21-v2
|
||||
steps:
|
||||
- name: Clone yavsc
|
||||
run: |
|
||||
|
|
@ -44,17 +44,11 @@ jobs:
|
|||
- name: Secret scan
|
||||
run: |
|
||||
echo "🔍 Scanning for secrets..."
|
||||
cd /src/_src && dotnet tool restore && dotnet picket git --verbose --redact --exit-code 1 --log-opts -n10 \
|
||||
cd /src/_src && dotnet workloads restore && dotnet tool restore && dotnet picket git --verbose --redact --exit-code 1 --log-opts -n10 \
|
||||
- name: Build
|
||||
run: |
|
||||
echo "🏗️ Building the solution..."
|
||||
cd /src/_src && dotnet build --verbosity normal
|
||||
- name: Install SkiaSharp native dependencies
|
||||
run: |
|
||||
echo "📦 Installing libfontconfig/libfreetype for SkiaSharp (Avalonia.Headless)..."
|
||||
apt-get update && apt-get install -y --no-install-recommends \
|
||||
libfontconfig1 libfreetype6 libexpat1 zlib1g libbz2-1.0 libpng16-16 libbrotli1 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
- name: Test
|
||||
run: |
|
||||
echo "🚀 Lancement des tests..."
|
||||
|
|
|
|||
Loading…
Reference in a new issue