Skip to content

Commit 3471598

Browse files
committed
enable benchmarks in cI
1 parent afe375a commit 3471598

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,26 @@ jobs:
112112
- name: Gradle compile JMH benchmarks
113113
run: ./gradlew compileJmh --info
114114

115+
benchmark-swift:
116+
name: Benchmark (Swift) (${{ matrix.os_version }} swift:${{ matrix.swift_version }} jdk:${{matrix.jdk_vendor}})
117+
runs-on: ubuntu-latest
118+
strategy:
119+
fail-fast: true
120+
matrix:
121+
swift_version: ['6.2.0']
122+
os_version: ['jammy']
123+
jdk_vendor: ['corretto']
124+
container:
125+
image: ${{ (contains(matrix.swift_version, 'nightly') && 'swiftlang/swift') || 'swift' }}:${{ matrix.swift_version }}-${{ matrix.os_version }}
126+
env:
127+
SWIFT_JAVA_VERBOSE: true
128+
steps:
129+
- uses: actions/checkout@v4
130+
- name: Prepare CI Environment
131+
uses: ./.github/actions/prepare_env
132+
- name: Swift Benchmarks
133+
run: swift package --package-path Benchmarks/ benchmark list
134+
115135
test-swift:
116136
name: Test (Swift) (${{ matrix.os_version }} swift:${{ matrix.swift_version }} jdk:${{matrix.jdk_vendor}})
117137
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)