-
Notifications
You must be signed in to change notification settings - Fork 297
104 lines (90 loc) · 2.92 KB
/
ci_macos.yml
File metadata and controls
104 lines (90 loc) · 2.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: CI macOS
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
schedule:
- cron: "0 2 * * 0,3"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name != 'schedule' && github.ref != 'refs/heads/main' }}
jobs:
changes:
runs-on: ubuntu-latest
outputs:
code: ${{ steps.filter.outputs.code }}
steps:
- uses: actions/checkout@v6
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
code:
- '**'
- '!.github/workflows/cache_*.yml'
- '!docker/dev/**'
- '!docs/**'
- '!.readthedocs.yml'
- '!tutorials/**'
- '!**/*.md'
- '!**/*.rst'
- '!**/*.po'
- '!**/*.pot'
build-release:
needs: changes
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || needs.changes.outputs.code == 'true'
name: Release Tests (arm64)
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup pixi (CI)
uses: ./.github/actions/setup-pixi-ci
with:
# Avoid cache key generation failures on macOS self-hosted runners
cache: false
pixi-bin-path: ${{ runner.temp }}/pixi/bin/pixi
sccache-continue-on-error: true
- name: Configure environment for compiler cache
uses: ./.github/actions/configure-compiler-cache
# Lint checks are now centralized to Ubuntu Release build only
# See ci_ubuntu.yml for the single source of lint validation
- name: Test DART and dartpy
run: |
DART_VERBOSE=ON \
BUILD_TYPE=Release \
DART_BUILD_SIMULATION_EXPERIMENTAL_OVERRIDE=OFF \
pixi run test-all
- name: Install
run: |
DART_VERBOSE=ON \
BUILD_TYPE=Release \
pixi run install
build-debug:
needs: changes
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || needs.changes.outputs.code == 'true'
name: Debug Tests (arm64)
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup pixi (CI)
uses: ./.github/actions/setup-pixi-ci
with:
# Avoid cache key generation failures on macOS self-hosted runners
cache: false
pixi-bin-path: ${{ runner.temp }}/pixi/bin/pixi
sccache-continue-on-error: true
- name: Configure environment for compiler cache
uses: ./.github/actions/configure-compiler-cache
- name: Test DART and dartpy
run: |
DART_VERBOSE=ON \
BUILD_TYPE=Debug \
DART_BUILD_SIMULATION_EXPERIMENTAL_OVERRIDE=OFF \
pixi run test-all