Skip to content

Commit a880fce

Browse files
committed
Fix CI
1 parent 18c7d39 commit a880fce

File tree

3 files changed

+36
-11
lines changed

3 files changed

+36
-11
lines changed

.github/workflows/benchmark.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,31 @@ jobs:
1616
name: Run Benchmarks
1717
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
1818
runs-on: macOS-26
19-
env:
20-
DEVELOPER_DIR: "/Applications/Xcode_26.2.app/Contents/Developer"
2119
steps:
2220
- uses: actions/checkout@v6
2321
with:
2422
fetch-depth: 0
23+
- name: Install Swiftly And Swift
24+
run: |
25+
curl -L https://download.swift.org/swiftly/darwin/swiftly.pkg > swiftly.pkg
26+
installer -pkg swiftly.pkg -target CurrentUserHomeDirectory
27+
28+
~/.swiftly/bin/swiftly init
29+
30+
. "$HOME/.swiftly/env.sh"
31+
hash -r
32+
33+
swiftly install --use --assume-yes
34+
swiftly link --assume-yes
35+
36+
echo "$HOME/.swiftly/bin" >> $GITHUB_PATH
2537
- name: Swift Version
26-
run: xcrun swift --version
38+
run: which swift && swift --version
2739
- name: Install jemalloc
2840
run: |
2941
echo "/opt/homebrew/bin:/usr/local/bin" >> $GITHUB_PATH
3042
brew install jemalloc
3143
- name: Run Parsing Benchmarks
3244
run: |
33-
xcrun swift package benchmark --no-progress --format markdown >> $GITHUB_STEP_SUMMARY
45+
export ENABLE_BENCHMARK=1
46+
swift package benchmark --no-progress --format markdown >> $GITHUB_STEP_SUMMARY

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
- name: Install swift-format
3232
run: brew install swiftformat --quiet
3333
- name: SwiftLint
34-
run: swiftlint --strict --config .swiftlint.yml .
34+
run: swiftlint --strict --config .swiftlint.yml . --reporter github-actions-logging
3535
- name: Swift Format Check
36-
run: swiftformat --lint-only --config .swiftformat.conf . --strict
36+
run: swiftformat --lint-only --config .swiftformat.conf . --strict --reporter github-actions-log
3737
test:
3838
name: ${{ matrix.name }}
3939
runs-on: ${{ matrix.runsOn }}

.github/workflows/deploy-docc.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,29 @@ jobs:
1414
build:
1515
name: Build DocC Documentation
1616
runs-on: macOS-26
17-
env:
18-
DEVELOPER_DIR: "/Applications/Xcode_26.2.app/Contents/Developer"
1917
steps:
2018
- name: Checkout
2119
uses: actions/checkout@v6
20+
- name: Install Swiftly And Swift
21+
run: |
22+
curl -L https://download.swift.org/swiftly/darwin/swiftly.pkg > swiftly.pkg
23+
installer -pkg swiftly.pkg -target CurrentUserHomeDirectory
24+
25+
~/.swiftly/bin/swiftly init
26+
27+
. "$HOME/.swiftly/env.sh"
28+
hash -r
29+
30+
swiftly install --use --assume-yes
31+
swiftly link --assume-yes
32+
33+
echo "$HOME/.swiftly/bin" >> $GITHUB_PATH
2234
- name: Swift Version
23-
run: xcrun swift --version
35+
run: which swift && swift --version
2436
- name: Build DocC
2537
run: |
26-
xcrun swift build
27-
xcrun swift package --allow-writing-to-directory ./docs \
38+
swift build
39+
swift package --allow-writing-to-directory ./docs \
2840
generate-documentation \
2941
--enable-experimental-combined-documentation \
3042
--target BinaryParseKit \

0 commit comments

Comments
 (0)