Rule 8.1 forbids one multi-job workflow fronted by several cosmetically labeled badges that all resolve to the same whole-workflow status. Split ci.yml into one workflow per concern (gates, macOS, Linux, Windows, WASM, corpus), each with a unique name, and point each README badge at its own workflow through the native per-workflow badge. The WASM workflow notes in a header that it is a build gate, not a test gate (Rule 8.3). Add a static MIT license badge linking to LICENSE (Rule 8.2). Step contents are unchanged from the previous jobs.
26 lines
438 B
YAML
26 lines
438 B
YAML
name: macOS
|
|
|
|
# macOS build and test (debug and release). One concern, one badge.
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
macos:
|
|
name: macOS
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Build and test
|
|
run: |
|
|
swift build
|
|
swift test
|
|
swift build -c release
|
|
swift test -c release
|