-
Notifications
You must be signed in to change notification settings - Fork 17
77 lines (69 loc) · 2.16 KB
/
test-src-build-linux.yml
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
name: From source(Linux)
on:
workflow_dispatch:
workflow_call:
pull_request:
paths:
- '.github/workflows/test-src-build-linux.yml'
- 'docker/from_src/*.Dockerfile'
- 'libheif/linux/**'
- 'libheif/linux_*.py'
- 'setup.*'
- 'pyproject.toml'
- 'pillow_heif/_pillow_heif.c'
push:
branches: [master]
paths:
- '.github/workflows/test-src-build-linux.yml'
- 'docker/from_src/*.Dockerfile'
- 'libheif/linux/**'
- 'libheif/linux_*.py'
- 'setup.*'
- 'pyproject.toml'
- 'pillow_heif/_pillow_heif.c'
concurrency:
group: src_linux-${{ github.ref }}
cancel-in-progress: true
jobs:
full_linux:
name: ${{ matrix.docker_file }}-${{ matrix.arch }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: ["amd64", "arm64"]
docker_file: ["Alpine_3_18", "Alpine_3_19", "Almalinux_9", "Debian_12"]
include:
- arch: "arm/v7"
docker_file: "Alpine_3_19"
- arch: "arm/v7"
docker_file: "Debian_12"
- arch: "amd64"
docker_file: "Archlinux"
- arch: "amd64"
docker_file: "Fedora_39"
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Requirements
uses: docker/build-push-action@v5
with:
context: .
file: docker/from_src/${{ matrix.docker_file }}.Dockerfile
platforms: linux/${{ matrix.arch }}
push: false
cache-from: type=gha,scope=${{ matrix.docker_file }}-${{ matrix.arch }}
cache-to: type=gha,mode=min,scope=${{ matrix.docker_file }}-${{ matrix.arch }}
target: base
- name: Build & Test Pillow-Heif
uses: docker/build-push-action@v5
with:
context: .
file: docker/from_src/${{ matrix.docker_file }}.Dockerfile
platforms: linux/${{ matrix.arch }}
push: false
cache-from: type=gha,scope=${{ matrix.docker_file }}-${{ matrix.arch }}
target: build_test