Skip to content

Add LSB parsing support to bitmask #136

Add LSB parsing support to bitmask

Add LSB parsing support to bitmask #136

Workflow file for this run

name: CI
on:
push:
branches:
- main
paths:
- ".github/workflows/**"
- "Package.swift"
- "Sources/**"
- "Tests/**"
- "TestPlans/**"
pull_request:
paths:
- ".github/workflows/**"
- "Package.swift"
- "Sources/**"
- "Tests/**"
- "TestPlans/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint & Format Check
runs-on: macOS-26
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install SwiftLint
run: brew install swiftlint --quiet
- name: Install swift-format
run: brew install swiftformat --quiet
- name: SwiftLint
run: swiftlint --strict --config .swiftlint.yml .
- name: Swift Format Check
run: swiftformat --lint-only --config .swiftformat.conf . --strict
test:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runsOn }}
needs: lint
strategy:
matrix:
include:
- runsOn: macOS-26
name: "macOS 26, SPM 6.2.0 Test"
steps:
- uses: actions/checkout@v4
- name: Install Swiftly And Swift
run: |
curl -L https://download.swift.org/swiftly/darwin/swiftly.pkg > swiftly.pkg
installer -pkg swiftly.pkg -target CurrentUserHomeDirectory
~/.swiftly/bin/swiftly init
. "~/.swiftly/env.sh"
hash -r
swiftly install --use --assume-yes
swiftly link --assume-yes
hash -r
- name: Swift Version
run: which swift && swift --version
- name: Brew install tools
run: brew install xcbeautify --quiet
- name: Run Tests
run: |
defaults write com.apple.dt.Xcode IDEPackageEnablePrebuilts YES
# set -o pipefail && \
# xcodebuild test \
# -scheme BinaryParseKit \
# -destination 'platform=macOS' \
# -skipMacroValidation | xcbeautify --renderer github-actions
# https://github.com/swiftlang/swift-package-manager/issues/9163
set -o pipefail && swift test | xcbeautify --renderer github-actions