Skip to content

Commit 7692b62

Browse files
authored
Add CI job with cmake build (but not tests yet) (#732)
1 parent 35fe082 commit 7692b62

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,30 @@ jobs:
2525
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
2626
with:
2727
windows_exclude_swift_versions: "[{\"swift_version\": \"5.9\"}]"
28+
29+
cmake-build:
30+
name: CMake Build
31+
runs-on: ubuntu-latest
32+
container:
33+
image: swift:6.0-jammy
34+
steps:
35+
- name: Checkout repo
36+
uses: actions/checkout@v4
37+
- name: Install apt dependencies
38+
run: apt-get -qq update && apt-get -qq -y install curl ninja-build
39+
- name: Install CMake 3.30.2
40+
run: |
41+
ARCH=`uname -m`
42+
curl -sL https://github.com/Kitware/CMake/releases/download/v3.30.2/cmake-3.30.2-linux-$ARCH.tar.gz -O
43+
tar xzf cmake-3.30.2-linux-$ARCH.tar.gz
44+
export PATH="`pwd`/cmake-3.30.2-linux-$ARCH/bin:$PATH"
45+
echo "PATH=$PATH" >> $GITHUB_ENV
46+
cmake --version
47+
- name: Configure CMake
48+
run: cmake -GNinja -S . -B .cmake-build -DBUILD_EXAMPLES=1 -DBUILD_TESTING=0
49+
- name: Build
50+
run: cmake --build .cmake-build
51+
2852
soundness:
2953
name: Soundness
3054
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main

0 commit comments

Comments
 (0)