Repository navigation
111 lines (107 loc) · 2.96 KB
/
Copy pathtest-linux.yml
File metadata and controls
111 lines (107 loc) · 2.96 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
name: Linux Test
on:
push:
branches: ["dev"]
paths:
- "src/**"
- "build/**"
- "examples/**"
- "tools/**"
- "build.zig"
- "build.zig.zon"
- ".github/actions/test-variant/**"
- ".github/scripts/ci.mjs"
- ".github/scripts/ci.test.mjs"
- ".github/workflows/test-linux.yml"
pull_request:
branches: ["dev"]
paths:
- "src/**"
- "build/**"
- "examples/**"
- "tools/**"
- "build.zig"
- "build.zig.zon"
- ".github/actions/test-variant/**"
- ".github/scripts/ci.mjs"
- ".github/scripts/ci.test.mjs"
- ".github/workflows/test-linux.yml"
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
x64:
name: test (PHP ${{ matrix.php }}, x86_64)
runs-on: ubuntu-latest
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
php: ["8.2", "8.3", "8.4", "8.5", "8.6"]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Zig
id: zig
uses: mlugg/setup-zig@v2
- name: Test CI orchestration
run: node --test .github/scripts/ci.test.mjs
- name: Test NTS PHP release
if: ${{ !cancelled() && steps.zig.outcome == 'success' }}
uses: ./.github/actions/test-variant
with:
php: ${{ matrix.php }}
ts: nts
debug: 'false'
- name: Test TS PHP release
if: ${{ !cancelled() && steps.zig.outcome == 'success' }}
uses: ./.github/actions/test-variant
with:
php: ${{ matrix.php }}
ts: ts
debug: 'false'
- name: Upload test logs
if: always()
uses: actions/upload-artifact@v4
with:
name: linux-x86_64-php-${{ matrix.php }}-logs
path: build/ci-results/
if-no-files-found: ignore
arm64:
name: test (PHP ${{ matrix.php }}, aarch64)
runs-on: ubuntu-24.04-arm
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
php: ["8.2", "8.3", "8.4", "8.5", "8.6"]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Zig
id: zig
uses: mlugg/setup-zig@v2
- name: Test CI orchestration
run: node --test .github/scripts/ci.test.mjs
- name: Test NTS PHP release
if: ${{ !cancelled() && steps.zig.outcome == 'success' }}
uses: ./.github/actions/test-variant
with:
php: ${{ matrix.php }}
ts: nts
debug: 'false'
- name: Test TS PHP release
if: ${{ !cancelled() && steps.zig.outcome == 'success' }}
uses: ./.github/actions/test-variant
with:
php: ${{ matrix.php }}
ts: ts
debug: 'false'
- name: Upload test logs
if: always()
uses: actions/upload-artifact@v4
with:
name: linux-aarch64-php-${{ matrix.php }}-logs
path: build/ci-results/
if-no-files-found: ignore