Skip to content

Commit

Permalink
ci: add Swift Package Manager config (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
axi92 authored Aug 28, 2024
1 parent 4ddc2c1 commit ea4610e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/spm-verify.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Swift Package Manager
.netrc
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
/Packages
/.build
25 changes: 25 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -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"
)
]
)

0 comments on commit ea4610e

Please sign in to comment.