Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
cli/.github/workflows/macos-x64-guest-webkit-probe.yml at main · FastLED/cli · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
FastLED
cli
Repository navigation
Code
Issues
2
(2)
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
cli
/
.github
/
workflows
/
macos-x64-guest-webkit-probe.yml
Copy path
View runs
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
146 lines (135 loc) · 5.95 KB
main
Breadcrumbs
cli
/
.github
/
workflows
/
macos-x64-guest-webkit-probe.yml
Copy path
Top
File metadata and controls
Code
Blame
146 lines (135 loc) · 5.95 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
136
137
138
139
140
141
142
143
144
145
146
name
:
macOS x64 Guest WebKit Probe
#
Can a docker-mac-x64 guest on a Linux runner replace the hosted macOS runner
#
for the live viewer render and the Safari smoke (#251)? This probe measures
#
it, and the answer so far is no:
#
#
The guest boots zackees/docker-mac-x64's macOS 13.0.1 Recovery system under
#
QEMU/KVM with a plain VGA adapter and no GPU acceleration. There, both the
#
shipped viewer's WKWebView and Safari 16.1 report neither WebGL2 nor WebGL1,
#
while requestAnimationFrame runs normally (~30 fps) and pages load; that
#
WebKit also has no OffscreenCanvas. The FastLED frontend requires WebGL2
#
(bootstrap.ts), so a sketch cannot render in this guest. A newer macOS image
#
would not supply a GPU: GitHub's Linux runners offer none that a macOS guest
#
has a driver for.
#
#
Recovery also lacks python3, `open`, `screencapture` and `safaridriver`.
#
Safari is opened on a home page preference instead (ci/macos-x64/probe-guest.sh),
#
and the page reports through the fastled server's /viewer-log route.
#
#
macos-arm-live-test.yml therefore keeps the hosted runner for rendering and
#
Safari. This workflow stays as the way to re-measure when the guest image or
#
the GPU situation changes: it runs on demand, and on pull requests that touch
#
the probe itself. The job summary reports what each WebKit client saw.
on
:
pull_request
:
types
:
[opened, synchronize, reopened, labeled, unlabeled]
workflow_dispatch
:
inputs
:
candidate_sha
:
description
:
Exact 40-character commit SHA to validate
required
:
true
type
:
string
concurrency
:
group
:
${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}
cancel-in-progress
:
${{ github.ref != 'refs/heads/main' }}
permissions
:
contents
:
read
jobs
:
probe
:
if
:
github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci-full'))
runs-on
:
ubuntu-latest
timeout-minutes
:
90
steps
:
-
uses
:
actions/checkout@v4
with
:
ref
:
${{ github.event_name == 'workflow_dispatch' && inputs.candidate_sha || github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
-
name
:
Verify checkout SHA
env
:
EXPECTED_SHA
:
${{ github.event_name == 'workflow_dispatch' && inputs.candidate_sha || github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
run
:
|
[[ "$EXPECTED_SHA" =~ ^[0-9a-f]{40}$ ]]
if [[ "$GITHUB_EVENT_NAME" == workflow_dispatch ]]; then
test "$EXPECTED_SHA" = "$GITHUB_SHA"
fi
test "$(git rev-parse HEAD)" = "$EXPECTED_SHA"
#
Same pin as macos-arm-live-test.yml: a Soldr with cross targets and the
#
managed macOS SDK.
-
uses
:
zackees/setup-soldr@v0
#
v0.9.82 or later (floating major)
env
:
GITHUB_TOKEN
:
${{ github.token }}
with
:
cache-key-suffix
:
macos-x64-guest-cross
cross-targets
:
x86_64-apple-darwin
toolchain-file
:
rust-toolchain.toml
prebuild-deps-flags
:
"
"
-
name
:
Cross-build the Intel fastled binary
run
:
|
soldr cargo build --release --bin fastled --target x86_64-apple-darwin
# Must be an x86_64 Mach-O, not a host binary.
test "$(od -A n -t x1 -N 8 target/x86_64-apple-darwin/release/fastled | tr -d ' \n')" = "cffaedfe07000001"
-
name
:
Stage the guest share directory
run
:
|
mkdir -p share
cp ci/macos-x64/webgl.html target/x86_64-apple-darwin/release/fastled share/
#
Recovery boots one script and offers no per-command execution, so the
#
guest half travels as a single string.
-
name
:
Generate the guest script
id
:
guest_script
run
:
|
{
echo 'script<<GUEST_EOF'
cat ci/macos-x64/probe-guest.sh
echo 'GUEST_EOF'
} >> "$GITHUB_OUTPUT"
echo "started=$(date +%s)" >> "$GITHUB_OUTPUT"
-
name
:
Probe WebKit in a macOS Recovery guest
id
:
macos
uses
:
zackees/docker-mac-x64@f173a047ba7fbe1db7d8162ff3ac8e276f50b153
#
main
with
:
share-dir
:
share
collect
:
/tmp/results
ram
:
"
10
"
cores
:
"
2
"
threads
:
"
4
"
boot-timeout
:
"
1200
"
run-timeout
:
"
1200
"
run
:
${{ steps.guest_script.outputs.script }}
#
The guest never exits non-zero, so the reports are the gate: each
#
WebKit client must have answered, or the probe measured nothing.
-
name
:
Summarize what each WebKit client reported
if
:
${{ !cancelled() }}
env
:
COLLECTED
:
${{ steps.macos.outputs.workdir }}/collected
STARTED
:
${{ steps.guest_script.outputs.started }}
run
:
|
set -euo pipefail
log="$COLLECTED/server.log"
test -f "$log" || { echo "::error::the guest returned no server log"; exit 1; }
{
echo "## macOS x64 guest WebKit probe"
echo
echo "Guest boot plus probe: $(( $(date +%s) - STARTED )) s"
echo
echo '```'
cat "$COLLECTED/guest.txt"
echo '```'
echo
echo "| client | report |"
echo "|---|---|"
sed -n 's/^\[viewer\] \([a-z-]*\) \(.*\)$/| \1 | \2 |/p' "$log"
} >> "$GITHUB_STEP_SUMMARY"
cat "$GITHUB_STEP_SUMMARY"
for client in viewer safari; do
grep -q "^\[viewer\] $client WEBGL2 " "$log" \
|| { echo "::error::$client never reported; the probe measured nothing"; exit 1; }
done
-
name
:
Upload the guest results
if
:
${{ always() }}
uses
:
actions/upload-artifact@v4
with
:
name
:
macos-x64-guest-webkit-probe
path
:
|
${{ steps.macos.outputs.workdir }}/results/
${{ steps.macos.outputs.workdir }}/collected/
if-no-files-found
:
warn
retention-days
:
7
You can’t perform that action at this time.