-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (74 loc) · 2.43 KB
/
Copy pathci.yml
File metadata and controls
76 lines (74 loc) · 2.43 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
# Parallel CI: each gate is an independent job so pass/fail is visible
# per-check instead of only at the first failure of a sequential chain.
# The heavyweight gates (full upstream parity sweep, native example matrix)
# live in parity.yml on a schedule; this workflow is the per-push signal.
name: ci
on:
push:
branches: ['**']
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
# generate:check + typecheck + lint + format + api accounting; pure Node,
# but drift verification regenerates from the pinned upstream submodule.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/toolchain
with:
haxe: 'false'
- run: npm run check
generator-tests:
# Generator unit suite; lowering fixtures execute through Haxe Eval and
# the checker census reads the upstream submodule.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/toolchain
- run: npm run test:generator
haxe-suite:
# Full-namespace CoreSmoke on the Haxe interpreter.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/toolchain
- run: npm run test:haxe:all
portable:
# One job per portable target so a target-specific regression is visible
# by name; cpp compiles the full corpus and is the long pole.
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [eval, js, python, cpp]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/toolchain
- run: npm run test:portable:${{ matrix.target }}
neko-smoke:
# Neko is not part of test:portable; run CoreSmoke on it explicitly.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/toolchain
with:
neko: 'true'
- run: >
node tools/haxe.mjs -cp src -cp generated -cp tests/haxe --main CoreSmoke --macro "include('flight')" --neko build/neko-smoke/core.n
- run: neko build/neko-smoke/core.n
package:
# Haxelib artifact build + isolated install + consumer compile/run.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/toolchain
with:
neko: 'true'
- run: npm run package