diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..722676f --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,25 @@ +# 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: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: macos-13 + env: + XCODE_VERSION: '15.0' + steps: + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: ${{ env.XCODE_VERSION }} + - uses: actions/checkout@v4 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v diff --git a/.gitignore b/.gitignore index 3b29812..62b7e8f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,5 @@ /*.xcodeproj xcuserdata/ DerivedData/ -.swiftpm/config/registries.json -.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +.swiftpm .netrc diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 0000000..cd442b2 --- /dev/null +++ b/Package.resolved @@ -0,0 +1,32 @@ +{ + "pins" : [ + { + "identity" : "compute", + "kind" : "remoteSourceControl", + "location" : "https://github.com/swift-cloud/Compute", + "state" : { + "revision" : "cc89dba27ade5713a2ac167fc752c4f4fe00439a", + "version" : "2.17.0" + } + }, + { + "identity" : "swift-crypto", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-crypto", + "state" : { + "revision" : "33a20e650c33f6d72d822d558333f2085effa3dc", + "version" : "2.5.0" + } + }, + { + "identity" : "swift-openapi-runtime", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-openapi-runtime.git", + "state" : { + "revision" : "ef2b34c4eb3175988dd318df7849d2052f106466", + "version" : "0.2.5" + } + } + ], + "version" : 2 +} diff --git a/README.md b/README.md index 63a9f49..04739be 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +[![Build](https://github.com/novr/swift-openapi-compute/actions/workflows/swift.yml/badge.svg)](https://github.com/novr/swift-openapi-compute/actions/workflows/swift.yml) +[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fnovr%2Fswift-openapi-compute%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/novr/swift-openapi-compute) +[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fnovr%2Fswift-openapi-compute%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/novr/swift-openapi-compute) + # Swift OpenAPI Compute This package provides Compute Bindings for the [OpenAPI generator](https://github.com/apple/swift-openapi-generator).