-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (67 loc) · 1.92 KB
/
Copy pathdocker.yml
File metadata and controls
81 lines (67 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Docker Build
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
# Validate Docker builds on PRs
docker-build:
name: Build Docker Images
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
target: [cli, web]
variant: [cpu]
platform: [linux/amd64, linux/arm64]
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
fetch-tags: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build (no push)
uses: docker/build-push-action@v7
with:
context: .
platforms: ${{ matrix.platform }}
target: ${{ matrix.target }}
build-args: |
VARIANT=${{ matrix.variant }}
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
# Cross-platform native build validation
native-build:
name: Native Build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
fetch-tags: true
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: "10.0.x"
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Install Playwright browsers
shell: pwsh
run: |
./tests/LocalTranscriber.Tests.E2E/bin/Release/net10.0/playwright.ps1 install chromium
- name: Test (exclude E2E in Docker validation lane)
run: dotnet test -c Release --no-build --verbosity normal --filter "FullyQualifiedName!~Tests.E2E"