diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 57e2813..b439c63 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -75,7 +75,10 @@ jobs: uses: actions/checkout@v6 - name: Install Dependencies shell: bash - run: apt update && apt install -y cmake ninja-build jq + run: | + apt update && apt install -y curl ninja-build jq + curl -fsSL "https://github.com/Kitware/CMake/releases/download/v4.0.2/cmake-4.0.2-linux-$(uname -m).tar.gz" \ + | tar --strip-components=1 -xz -C /usr/local - name: Configure Project shell: bash run: | diff --git a/CMakeLists.txt b/CMakeLists.txt index df64729..956769f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ Licensed under Apache License v2.0 with Runtime Library Exception See https://swift.org/LICENSE.txt for license information #]] -cmake_minimum_required(VERSION 3.16.0) +cmake_minimum_required(VERSION 3.29) project(SwiftSystem LANGUAGES C Swift) diff --git a/Sources/System/FileOperations.swift b/Sources/System/FileOperations.swift index 1c7af68..746e6ae 100644 --- a/Sources/System/FileOperations.swift +++ b/Sources/System/FileOperations.swift @@ -381,7 +381,7 @@ extension FileDescriptor { /// Duplicates this file descriptor and returns the newly created copy. /// /// - Parameters: - /// - `target`: The desired target file descriptor, or `nil`, in which case + /// - target: The desired target file descriptor, or `nil`, in which case /// the copy is assigned to the file descriptor with the lowest raw value /// that is not currently in use by the process. /// - retryOnInterrupt: Whether to retry the duplicate operation