Skip to content

perf: keep oversized userscript patterns out of the protobuf store #319

perf: keep oversized userscript patterns out of the protobuf store

perf: keep oversized userscript patterns out of the protobuf store #319

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
DERIVED_DATA: ${{ github.workspace }}/.derived-data
jobs:
tests:
runs-on: macos-26
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Fetch main
run: git fetch --no-tags --depth=1 origin main
# Package checkouts and the core framework's intermediates survive
# between runs, so the test-time xcodebuild is incremental.
- name: Restore core build cache
uses: actions/cache@v4
with:
path: .derived-data
key: core-debug-${{ runner.os }}-${{ hashFiles('wBlock.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved', 'wBlockCoreService/**', 'wBlock.xcodeproj/project.pbxproj') }}
restore-keys: |
core-debug-${{ runner.os }}-
- name: Run regression tests
env:
WBLOCK_DERIVED_DATA: ${{ env.DERIVED_DATA }}
run: scripts/run-ci-tests.sh
build:
runs-on: macos-26
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- name: macOS
destination: generic/platform=macOS
- name: iOS Simulator
destination: generic/platform=iOS Simulator
name: build (${{ matrix.name }})
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Restore build cache
uses: actions/cache@v4
with:
path: .derived-data
key: app-release-${{ matrix.name }}-${{ hashFiles('wBlock.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved', 'wBlock.xcodeproj/project.pbxproj') }}-${{ github.sha }}
restore-keys: |
app-release-${{ matrix.name }}-${{ hashFiles('wBlock.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved', 'wBlock.xcodeproj/project.pbxproj') }}-
app-release-${{ matrix.name }}-
- name: Build Release
run: |
set -o pipefail
xcodebuild \
-project wBlock.xcodeproj \
-scheme wBlock \
-configuration Release \
-destination '${{ matrix.destination }}' \
-derivedDataPath "$DERIVED_DATA" \
CODE_SIGNING_ALLOWED=NO \
build