From 1921f33abcb1b155dd340f536d4ce3324892111f Mon Sep 17 00:00:00 2001 From: MyTechBlitz3000 Date: Sat, 16 May 2026 10:51:30 +0800 Subject: [PATCH 1/2] Create Package.swift --- Package.swift | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Package.swift diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..ea59cd1 --- /dev/null +++ b/Package.swift @@ -0,0 +1,37 @@ +// swift-tools-version: 5.8 +import PackageDescription + +let package = Package( + name: "SwiftSH", + platforms: [ + .macOS(.v13), // You can change this if you want iOS support + .iOS(.v16) + ], + products: [ + .library( + name: "SwiftSH", + targets: ["SwiftSH"] + ), + ], + dependencies: [ + // Add dependencies if needed, for example SwiftNIO + .package(url: "https://github.com/MyTechBlitz3000/SwiftSH.git", from: "1.0.0") + ], + targets: [ + .target( + name: "SwiftSH", + dependencies: [ + .product(name: "NIO", package: "swift-nio") // Example: adjust if you use NIO + ], + path: ".", // The root folder has the SwiftSH.swift file + exclude: ["Tests", "README.md", "LICENSE.md"], // exclude non-source files + sources: ["SwiftSH.swift"], // all main source files here + publicHeadersPath: nil + ), + .testTarget( + name: "SwiftSHTests", + dependencies: ["SwiftSH"], + path: "Tests" // Create this folder if you want tests + ) + ] +) From 05929b08c8e9c9fda3bbd1be1b3278dfd7abbc8d Mon Sep 17 00:00:00 2001 From: MyTechBlitz3000 Date: Sat, 16 May 2026 10:53:41 +0800 Subject: [PATCH 2/2] Create swift.yml --- .github/workflows/swift.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..5645dcd --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,22 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Swift + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v