From ea4610e104aa20fcf852c45c39527ed429f98b25 Mon Sep 17 00:00:00 2001 From: axi92 Date: Wed, 28 Aug 2024 15:49:52 +0200 Subject: [PATCH] ci: add Swift Package Manager config (#1) --- .github/workflows/spm-verify.yml | 13 +++++++++++++ .gitignore | 6 ++++++ Package.swift | 25 +++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 .github/workflows/spm-verify.yml create mode 100644 .gitignore create mode 100644 Package.swift diff --git a/.github/workflows/spm-verify.yml b/.github/workflows/spm-verify.yml new file mode 100644 index 0000000..d6348ba --- /dev/null +++ b/.github/workflows/spm-verify.yml @@ -0,0 +1,13 @@ +name: Swift Package Manager Verify +on: + push: + branches: ['main'] + pull_request: + branches: ['main'] +jobs: + verify: + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - name: Verify + run: swift package dump-package diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..df0252a --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# Swift Package Manager +.netrc +.swiftpm/configuration/registries.json +.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +/Packages +/.build \ No newline at end of file diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..a95040c --- /dev/null +++ b/Package.swift @@ -0,0 +1,25 @@ +// swift-tools-version: 5.10 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "AbrevvaSDK", + platforms: [ + .iOS(.v15) + ], + products: [ + // Products define the executables and libraries a package produces, making them visible to other packages. + .library( + name: "AbrevvaSDK", + targets: ["AbrevvaSDK"]), + ], + targets: [ + // Targets are the basic building blocks of a package, defining a module or a test suite. + // Targets can depend on other targets in this package and products from dependencies. + .binaryTarget( + name: "AbrevvaSDK", + path: "AbrevvaSDK.xcframework" + ) + ] +)