Skip to content

Commit 278a506

Browse files
committed
Enable CI job to build via CMake
1 parent 8180dd1 commit 278a506

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
tests:
12-
name: Test
12+
name: Test (SwiftPM)
1313
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
1414
with:
1515
linux_swift_versions: '["nightly-main"]'
@@ -18,6 +18,23 @@ jobs:
1818
macos_xcode_versions: '["16.3"]'
1919
macos_versions: '["sequoia"]'
2020

21+
cmake_build:
22+
name: Build (CMake)
23+
runs-on: ubuntu-latest
24+
container: swiftlang/swift:nightly-main-noble
25+
steps:
26+
- name: Checkout Sources
27+
uses: actions/checkout@v1
28+
- name: Install Dependencies
29+
shell: bash
30+
run: apt update && apt install -y cmake ninja-build
31+
- name: Configure Project
32+
shell: bash
33+
run: cmake -G 'Ninja' -B build -S . -DCMAKE_C_COMPILER=clang -DCMAKE_Swift_COMPILER=swiftc -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=YES
34+
- name: Build Project
35+
shell: bash
36+
run: cmake --build build
37+
2138
soundness:
2239
name: Soundness
2340
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main

0 commit comments

Comments
 (0)