-
Notifications
You must be signed in to change notification settings - Fork 10
135 lines (126 loc) · 4.3 KB
/
Copy pathdocker.yml
File metadata and controls
135 lines (126 loc) · 4.3 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: Linux Docker WXGTK builds
on:
push:
branches:
- master
paths-ignore:
- '.github/**'
- 'assets/**'
- 'tools/**'
- 'lib/wx/doc/**'
- 'lib/wx/version.rb'
- '**.md'
- '.cirrus.yml'
pull_request:
branches:
- master
paths-ignore:
- '.github/**'
- 'assets/**'
- 'tools/**'
- 'lib/wx/doc/**'
- 'lib/wx/version.rb'
- 'rakelib/lib/**/*.yaml'
- '**.md'
- 'Gemfile'
- '.yardopts'
- '.gitignore'
- 'LICENSE'
- '.cirrus.yml'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-pr:
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
arch: x86_64
target_distro: fedora
target_base: 'latest'
target_ruby: system
- os: ubuntu-24.04
arch: x86_64
target_distro: opensuse
target_docker_image: ['opensuse', 'leap']
target_base: 'latest'
target_ruby: system
- os: ubuntu-24.04
arch: x86_64
target_distro: linuxmint
target_docker_image: ['linuxmintd', 'mint22.3-amd64']
target_base: 'latest'
target_ruby: system
- os: ubuntu-24.04-arm
arch: arm64
target_distro: debian
target_base: '12'
target_ruby: system
- os: ubuntu-24.04
arch: x86_64
target_distro: arch
target_docker_image: ['archlinux', 'archlinux']
target_base: 'latest'
target_ruby: latest
runs-on: ${{ matrix.os }}
name: ${{ case(matrix.target_docker_image != '', join(matrix.target_docker_image, '/'), matrix.target_distro) }}:${{ matrix.target_base }} ${{ matrix.arch }} ruby=${{ matrix.target_ruby }}
steps:
- name: Checkout wxRuby3
uses: actions/checkout@v7
- name: Setup Dockerfile
run: |
${{ github.workspace }}/tools/scripts/docker/create-docker-file.sh ${{ case(matrix.target_docker_image != '', join(matrix.target_docker_image, '/'), matrix.target_distro) }} ${{ matrix.target_base }} ${{ github.workspace }}/.github/actions/linux-docker-verify/Dockerfile
- name: Verify wxRuby3 on docker image
uses: ./.github/actions/linux-docker-verify
id: verify
with:
distro: ${{ matrix.target_distro }}
ruby: ${{ matrix.target_ruby }}
build-pr-merge:
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
arch: x86_64
target_distro: manjaro
target_docker_image: ['manjarolinux', 'base']
target_base: 'latest'
target_ruby: system
- os: ubuntu-24.04
arch: x86_64
target_distro: debian
target_base: 'latest'
target_ruby: latest
- os: ubuntu-24.04-arm
arch: arm64
target_distro: fedora
target_base: '42'
target_ruby: latest
- os: ubuntu-24.04-arm
arch: arm64
target_distro: opensuse
target_docker_image: ['opensuse', 'leap']
target_base: '15.6'
target_ruby: latest
runs-on: ${{ matrix.os }}
name: ${{ case(matrix.target_docker_image != '', join(matrix.target_docker_image, '/'), matrix.target_distro) }}:${{ matrix.target_base }} ${{ matrix.arch }} ruby=${{ matrix.target_ruby }}
steps:
- name: Checkout wxRuby3
uses: actions/checkout@v7
- name: Setup Dockerfile
run: |
${{ github.workspace }}/tools/scripts/docker/create-docker-file.sh ${{ case(matrix.target_docker_image != '', join(matrix.target_docker_image, '/'), matrix.target_distro) }} ${{ matrix.target_base }} ${{ github.workspace }}/.github/actions/linux-docker-verify/Dockerfile
- name: Verify wxRuby3 on docker image
uses: ./.github/actions/linux-docker-verify
id: verify
with:
distro: ${{ matrix.target_distro }}
ruby: ${{ matrix.target_ruby }}