diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 34995e966..971a1ea25 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -25,6 +25,30 @@ jobs: uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main with: windows_exclude_swift_versions: "[{\"swift_version\": \"5.9\"}]" + + cmake-build: + name: CMake Build + runs-on: ubuntu-latest + container: + image: swift:6.0-jammy + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Install apt dependencies + run: apt-get -qq update && apt-get -qq -y install curl ninja-build + - name: Install CMake 3.30.2 + run: | + ARCH=`uname -m` + curl -sL https://github.com/Kitware/CMake/releases/download/v3.30.2/cmake-3.30.2-linux-$ARCH.tar.gz -O + tar xzf cmake-3.30.2-linux-$ARCH.tar.gz + export PATH="`pwd`/cmake-3.30.2-linux-$ARCH/bin:$PATH" + echo "PATH=$PATH" >> $GITHUB_ENV + cmake --version + - name: Configure CMake + run: cmake -GNinja -S . -B .cmake-build -DBUILD_EXAMPLES=1 -DBUILD_TESTING=0 + - name: Build + run: cmake --build .cmake-build + soundness: name: Soundness uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main