docs: remove unsupported comparison claims #71
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| swift: | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Verify generated config defaults | |
| run: swift scripts/generate-config-defaults.swift --check | |
| - name: Run unit tests | |
| run: swift test | |
| - name: Build release executable | |
| run: swift build -c release | |
| - name: Verify test frameworks are not linked | |
| run: | | |
| if otool -L .build/release/mx3-lite | grep -E 'XCTest|Testing'; then | |
| echo "release executable links a test framework" >&2 | |
| exit 1 | |
| fi | |
| - name: Verify lightweight sharing archive | |
| run: | | |
| bash scripts/package.sh | |
| archive="../$(basename "$PWD").zip" | |
| test -f "$archive" | |
| if unzip -Z1 "$archive" | grep -E '(^|/)(Tests|scripts/performance)(/|$)'; then | |
| echo "sharing archive contains development tests or performance probes" >&2 | |
| exit 1 | |
| fi | |
| unzip -Z1 "$archive" | grep -q '/config/defaults.json$' | |
| if unzip -Z1 "$archive" | grep -qi 'default-config'; then | |
| echo "sharing archive contains a retired config name" >&2 | |
| exit 1 | |
| fi | |
| - name: Verify app config resource | |
| run: | | |
| bash scripts/build-app.sh | |
| test -f dist/mx3-lite.app/Contents/Resources/defaults.json | |
| test ! -e dist/mx3-lite.app/Contents/Resources/default-config.json | |
| release-archives: | |
| runs-on: macos-14 | |
| strategy: | |
| matrix: | |
| arch: [arm64, x86_64] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Check release scripts | |
| run: bash -n scripts/build-release-app.sh scripts/package-release.sh scripts/verify-release.sh | |
| - name: Build and verify ${{ matrix.arch }} validation archive | |
| run: bash scripts/package-release.sh --arch "${{ matrix.arch }}" | |
| - name: Upload validation archive | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: mx3-lite-${{ matrix.arch }}-validation | |
| path: dist/releases/v*/ | |
| if-no-files-found: error |